Skip to content

Commit

Permalink
[NVPTX] Variables that start with llvm. or nvvm. are reserved and sho…
Browse files Browse the repository at this point in the history
…uld not be emitted

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211940 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jholewinski committed Jun 27, 2014
1 parent cb8f983 commit ab7c0aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,11 @@ void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar,
return;
}

// Skip LLVM intrinsic global variables
if (GVar->getName().startswith("llvm.") ||
GVar->getName().startswith("nvvm."))
return;

const DataLayout *TD = TM.getDataLayout();

// GlobalVariables are always constant pointers themselves.
Expand Down

0 comments on commit ab7c0aa

Please sign in to comment.