mirror of
https://github.com/intel/llvm.git
synced 2026-01-30 22:53:05 +08:00
Besides the warning, issue unsupported diagnostics in
ir gen. No intended change in functionality. llvm-svn: 67857
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user