Remove some dead methods.
authorBill Wendling <isanbard@gmail.com>
Tue, 9 Oct 2012 05:54:39 +0000 (05:54 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 9 Oct 2012 05:54:39 +0000 (05:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165485 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h
include/llvm/Instructions.h
lib/VMCore/Instructions.cpp

index 752fe0bbfcb9512af484f0f825d3a24c96e37aa9..f5bed69e6547866fb37da238abb686091691e665 100644 (file)
@@ -206,11 +206,6 @@ public:
     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);
   
index bed828a88551ea77b35d60e12fd89e6d121a0b3a..eba57805cd05db5d3d02f6d9663078129670c0fc 100644 (file)
@@ -1276,11 +1276,6 @@ public:
   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 @@ public:
   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 @@ public:
   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 @@ public:
   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);
index 1d732687236c1c4ceb7d64148ec625cd95be4bea..8c3013b0bbc73bc3a1e7a2af2add57af1b06fd0e 100644 (file)
@@ -456,14 +456,6 @@ bool CallInst::paramHasNoCaptureAttr(unsigned i) const {
   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 @@ bool InvokeInst::paramHasNoCaptureAttr(unsigned i) const {
   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);