summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 8b748cb762a..b38633db91d 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -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);
OpenPOWER on IntegriCloud