[llvm-commits] [llvm] r165485 - in /llvm/trunk: include/llvm/Function.h include/llvm/Instructions.h lib/VMCore/Instructions.cpp
Bill Wendling
isanbard at gmail.com
Mon Oct 8 22:54:39 PDT 2012
Author: void
Date: Tue Oct 9 00:54:39 2012
New Revision: 165485
URL: http://llvm.org/viewvc/llvm-project?rev=165485&view=rev
Log:
Remove some dead methods.
Modified:
llvm/trunk/include/llvm/Function.h
llvm/trunk/include/llvm/Instructions.h
llvm/trunk/lib/VMCore/Instructions.cpp
Modified: llvm/trunk/include/llvm/Function.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Function.h?rev=165485&r1=165484&r2=165485&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Function.h (original)
+++ llvm/trunk/include/llvm/Function.h Tue Oct 9 00:54:39 2012
@@ -206,11 +206,6 @@
return AttributeList.getParamAttributes(Idx);
}
- /// @brief Determine whether the function has the given attribute.
- bool paramHasAttr(unsigned i, Attributes attr) const {
- return AttributeList.paramHasAttr(i, attr);
- }
-
/// addAttribute - adds the attribute to the list of attributes.
void addAttribute(unsigned i, Attributes attr);
Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=165485&r1=165484&r2=165485&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Oct 9 00:54:39 2012
@@ -1276,11 +1276,6 @@
bool fnHasReadOnlyAttr() const;
bool fnHasReturnsTwiceAttr() const;
- /// \brief Return true if this call has the given attribute.
- bool hasFnAttr(Attributes N) const {
- return paramHasAttr(~0, N);
- }
-
/// @brief Determine whether the call or the callee has the given attributes.
bool paramHasByValAttr(unsigned i) const;
bool paramHasInRegAttr(unsigned i) const;
@@ -1291,9 +1286,6 @@
bool paramHasStructRetAttr(unsigned i) const;
bool paramHasZExtAttr(unsigned i) const;
- /// @brief Determine whether the call or the callee has the given attribute.
- bool paramHasAttr(unsigned i, Attributes attr) const;
-
/// @brief Extract the alignment for a call or parameter (0=unknown).
unsigned getParamAlignment(unsigned i) const {
return AttributeList.getParamAlignment(i);
@@ -3060,11 +3052,6 @@
bool fnHasReadOnlyAttr() const;
bool fnHasReturnsTwiceAttr() const;
- /// \brief Return true if this call has the given attribute.
- bool hasFnAttr(Attributes N) const {
- return paramHasAttr(~0, N);
- }
-
/// @brief Determine whether the call or the callee has the given attributes.
bool paramHasSExtAttr(unsigned i) const;
bool paramHasZExtAttr(unsigned i) const;
@@ -3075,9 +3062,6 @@
bool paramHasNoAliasAttr(unsigned i) const;
bool paramHasNoCaptureAttr(unsigned i) const;
- /// @brief Determine whether the call or the callee has the given attribute.
- bool paramHasAttr(unsigned i, Attributes attr) const;
-
/// @brief Extract the alignment for a call or parameter (0=unknown).
unsigned getParamAlignment(unsigned i) const {
return AttributeList.getParamAlignment(i);
Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=165485&r1=165484&r2=165485&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue Oct 9 00:54:39 2012
@@ -456,14 +456,6 @@
return false;
}
-bool CallInst::paramHasAttr(unsigned i, Attributes attr) const {
- if (AttributeList.paramHasAttr(i, attr))
- return true;
- if (const Function *F = getCalledFunction())
- return F->paramHasAttr(i, attr);
- return false;
-}
-
/// IsConstantOne - Return true only if val is constant int 1
static bool IsConstantOne(Value *val) {
assert(val && "IsConstantOne does not work with NULL val");
@@ -790,14 +782,6 @@
return false;
}
-bool InvokeInst::paramHasAttr(unsigned i, Attributes attr) const {
- if (AttributeList.paramHasAttr(i, attr))
- return true;
- if (const Function *F = getCalledFunction())
- return F->paramHasAttr(i, attr);
- return false;
-}
-
void InvokeInst::addAttribute(unsigned i, Attributes attr) {
AttrListPtr PAL = getAttributes();
PAL = PAL.addAttr(i, attr);
More information about the llvm-commits
mailing list