forked from OSchip/llvm-project
[NVPTX] Variables that start with llvm. or nvvm. are reserved and should not be emitted
llvm-svn: 211940
This commit is contained in:
parent
b926d9d446
commit
73cb5de546
|
@ -1351,6 +1351,11 @@ void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Skip LLVM intrinsic global variables
|
||||||
|
if (GVar->getName().startswith("llvm.") ||
|
||||||
|
GVar->getName().startswith("nvvm."))
|
||||||
|
return;
|
||||||
|
|
||||||
const DataLayout *TD = TM.getDataLayout();
|
const DataLayout *TD = TM.getDataLayout();
|
||||||
|
|
||||||
// GlobalVariables are always constant pointers themselves.
|
// GlobalVariables are always constant pointers themselves.
|
||||||
|
|
Loading…
Reference in New Issue