]> granicus.if.org Git - clang/commitdiff
Rename (one) SetFunctionAttributes to SetLLVMFunctionAttributes to
authorDaniel Dunbar <daniel@zuster.org>
Tue, 14 Apr 2009 07:08:30 +0000 (07:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 14 Apr 2009 07:08:30 +0000 (07:08 +0000)
disambiguate it.
 - No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h

index 077c02384a7853ef3109bf4788d85152bfb65e13..096e87d8b7e8f5867101c1093e5028bd20650214 100644 (file)
@@ -304,9 +304,9 @@ void CodeGenModule::SetGlobalValueAttributes(const Decl *D,
     GV->setSection(SA->getName());
 }
 
-void CodeGenModule::SetFunctionAttributes(const Decl *D,
-                                          const CGFunctionInfo &Info, 
-                                          llvm::Function *F) {
+void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,
+                                              const CGFunctionInfo &Info, 
+                                              llvm::Function *F) {
   AttributeListType AttributeList;
   ConstructAttributeList(Info, D, AttributeList);
 
@@ -360,14 +360,14 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
 
 void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,
                                         llvm::Function *F) {
-  SetFunctionAttributes(MD, getTypes().getFunctionInfo(MD), F);
+  SetLLVMFunctionAttributes(MD, getTypes().getFunctionInfo(MD), F);
   
   SetFunctionAttributesForDefinition(MD, F);
 }
 
 void CodeGenModule::SetFunctionAttributes(const FunctionDecl *FD,
                                           llvm::Function *F) {
-  SetFunctionAttributes(FD, getTypes().getFunctionInfo(FD), F);
+  SetLLVMFunctionAttributes(FD, getTypes().getFunctionInfo(FD), F);
   
   SetGlobalValueAttributes(FD, GetLinkageForFunctionOrMethodDecl(FD), F, false);
 }
index 8b748cb762ae44d2f1e2663eedf1424128d56898..b38633db91d67ba277d14b10727040c5f3c0b70b 100644 (file)
@@ -292,9 +292,11 @@ public:
   void SetMethodAttributes(const ObjCMethodDecl *MD,
                            llvm::Function *F);
 
-  void SetFunctionAttributes(const Decl *D,
-                             const CGFunctionInfo &Info,
-                             llvm::Function *F);
+  /// SetLLVMFunctionAttributes - Set the LLVM function attributes
+  /// (sext, zext, etc).
+  void SetLLVMFunctionAttributes(const Decl *D,
+                                 const CGFunctionInfo &Info,
+                                 llvm::Function *F);
 
   /// ReturnTypeUsesSret - Return true iff the given type uses 'sret' when used
   /// as a return type.
@@ -329,10 +331,13 @@ private:
     
   /// SetFunctionAttributesForDefinition - Set function attributes specific to a
   /// function definition.
+  ///
   /// \param D - The ObjCMethodDecl or FunctionDecl defining \arg F.
   void SetFunctionAttributesForDefinition(const Decl *D,
                                           llvm::Function *F);
 
+  /// SetFunctionAttributes - Set function attributes for a function
+  /// declaration.
   void SetFunctionAttributes(const FunctionDecl *FD,
                              llvm::Function *F);