Skip to content

Commit

Permalink
remove some @deprecated markers: LLVM APIs aren't deprecated, they ar…
Browse files Browse the repository at this point in the history
…e removed when obsolete.

These APIs are still used, and the constant APIs are actually really important.

Removing these makes -Wdocumentation more useful.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184170 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jun 18, 2013
1 parent 098f1ba commit 389ee19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions include/llvm/IR/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class ConstantInt : public Constant {
/// Return the constant as a 64-bit unsigned integer value after it
/// has been zero extended as appropriate for the type of this constant. Note
/// that this method can assert if the value does not fit in 64 bits.
/// @deprecated
/// @brief Return the zero extended value.
inline uint64_t getZExtValue() const {
return Val.getZExtValue();
Expand All @@ -121,7 +120,6 @@ class ConstantInt : public Constant {
/// Return the constant as a 64-bit integer value after it has been sign
/// extended as appropriate for the type of this constant. Note that
/// this method can assert if the value does not fit in 64 bits.
/// @deprecated
/// @brief Return the sign extended value.
inline int64_t getSExtValue() const {
return Val.getSExtValue();
Expand Down
3 changes: 0 additions & 3 deletions include/llvm/IR/Instructions.h
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,6 @@ class SwitchInst : public TerminatorInst {
}

/// addCase - Add an entry to the switch instruction...
/// @deprecated
/// Note:
/// This action invalidates case_end(). Old case_end() iterator will
/// point to the added case.
Expand Down Expand Up @@ -2695,7 +2694,6 @@ class SwitchInst : public TerminatorInst {
}

/// Resolves case value for current case.
/// @deprecated
ConstantIntTy *getCaseValue() {
assert(Index < SI->getNumCases() && "Index out the number of cases.");
IntegersSubsetRef CaseRanges = *SubsetIt;
Expand Down Expand Up @@ -2799,7 +2797,6 @@ class SwitchInst : public TerminatorInst {
CaseIt(const ParentTy& Src) : ParentTy(Src) {}

/// Sets the new value for current case.
/// @deprecated.
void setValue(ConstantInt *V) {
assert(Index < SI->getNumCases() && "Index out the number of cases.");
IntegersSubsetToBB Mapping;
Expand Down

0 comments on commit 389ee19

Please sign in to comment.