[cfe-commits] r69034 - in /cfe/trunk/lib/CodeGen: CodeGenModule.cpp CodeGenModule.h

Daniel Dunbar daniel at zuster.org
Tue Apr 14 00:08:30 PDT 2009


Author: ddunbar
Date: Tue Apr 14 02:08:30 2009
New Revision: 69034

URL: http://llvm.org/viewvc/llvm-project?rev=69034&view=rev
Log:
Rename (one) SetFunctionAttributes to SetLLVMFunctionAttributes to
disambiguate it.
 - No functionality change.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp
    cfe/trunk/lib/CodeGen/CodeGenModule.h

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=69034&r1=69033&r2=69034&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Tue Apr 14 02:08:30 2009
@@ -304,9 +304,9 @@
     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::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);
 }

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=69034&r1=69033&r2=69034&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Tue Apr 14 02:08:30 2009
@@ -292,9 +292,11 @@
   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 @@
     
   /// 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);
 





More information about the cfe-commits mailing list