summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-25 21:02:23 +0000
committerDevang Patel <dpatel@apple.com>2008-09-25 21:02:23 +0000
commit322300d1c21e5bfe89dbdfa6ae23dde628f8d9e0 (patch)
treeebf365d6aaad343073d8de67c21db8c77ea088e9 /clang/lib/CodeGen/CodeGenModule.cpp
parent4c758ea3e0d31e56773ef74ecac1775c641377e5 (diff)
downloadbcm5719-llvm-322300d1c21e5bfe89dbdfa6ae23dde628f8d9e0.tar.gz
bcm5719-llvm-322300d1c21e5bfe89dbdfa6ae23dde628f8d9e0.zip
Large mechanical patch.
s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. llvm-svn: 56623
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index c0863578e88..d237598e281 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -212,15 +212,15 @@ static void SetGlobalValueAttributes(const Decl *D,
}
}
-void CodeGenModule::SetFunctionParamAttrs(const Decl *D,
+void CodeGenModule::SetFunctionAttributes(const Decl *D,
const CGFunctionInfo &Info,
llvm::Function *F) {
- ParamAttrListType ParamAttrList;
- ConstructParamAttrList(D, Info.argtypes_begin(), Info.argtypes_end(),
- ParamAttrList);
+ AttributeListType AttributeList;
+ ConstructAttributeList(D, Info.argtypes_begin(), Info.argtypes_end(),
+ AttributeList);
- F->setParamAttrs(llvm::PAListPtr::get(ParamAttrList.begin(),
- ParamAttrList.size()));
+ F->setAttributes(llvm::AttrListPtr::get(AttributeList.begin(),
+ AttributeList.size()));
// Set the appropriate calling convention for the Function.
if (D->getAttr<FastCallAttr>())
@@ -240,19 +240,19 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
}
if (!Features.Exceptions)
- F->addParamAttr(0, llvm::ParamAttr::NoUnwind);
+ F->addAttribute(0, llvm::Attribute::NoUnwind);
}
void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,
llvm::Function *F) {
- SetFunctionParamAttrs(MD, CGFunctionInfo(MD, Context), F);
+ SetFunctionAttributes(MD, CGFunctionInfo(MD, Context), F);
SetFunctionAttributesForDefinition(MD, F);
}
void CodeGenModule::SetFunctionAttributes(const FunctionDecl *FD,
llvm::Function *F) {
- SetFunctionParamAttrs(FD, CGFunctionInfo(FD), F);
+ SetFunctionAttributes(FD, CGFunctionInfo(FD), F);
SetGlobalValueAttributes(FD, FD->getStorageClass() == FunctionDecl::Static,
FD->isInline(), F, false);
OpenPOWER on IntegriCloud