summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-03-27 18:38:55 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-03-27 18:38:55 +0000
commita2d609e2f144e70892a04edceab28223d4bd838b (patch)
tree9a3a273264d668aeda14f910d6116a65984db2e1 /clang/lib/CodeGen/CodeGenModule.cpp
parent8680802b1f9022359c9d10ae57d1c2560536a113 (diff)
downloadbcm5719-llvm-a2d609e2f144e70892a04edceab28223d4bd838b.tar.gz
bcm5719-llvm-a2d609e2f144e70892a04edceab28223d4bd838b.zip
Besides the warning, issue unsupported diagnostics in
ir gen. No intended change in functionality. llvm-svn: 67857
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 8a880516f66..0759abdd33f 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -286,6 +286,9 @@ void CodeGenModule::SetFunctionAttributes(const Decl *D,
if (D->getAttr<StdCallAttr>())
F->setCallingConv(llvm::CallingConv::X86_StdCall);
+
+ if (D->getAttr<RegparmAttr>())
+ ErrorUnsupported(D, "regparm attribute");
}
/// SetFunctionAttributesForDefinition - Set function attributes
@@ -308,6 +311,9 @@ void CodeGenModule::SetFunctionAttributesForDefinition(const Decl *D,
if (D->getAttr<NoinlineAttr>())
F->addFnAttr(llvm::Attribute::NoInline);
+
+ if (D->getAttr<RegparmAttr>())
+ ErrorUnsupported(D, "regparm attribute");
}
void CodeGenModule::SetMethodAttributes(const ObjCMethodDecl *MD,
OpenPOWER on IntegriCloud