diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
| commit | 379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89 (patch) | |
| tree | 76f2336957b62005e10d223d5493eda780e27cef /llvm/lib/Bytecode/Reader/ConstantReader.cpp | |
| parent | f0e92b575f675ee8fb09b7fdb56cc27e8a5bdd21 (diff) | |
| download | bcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.tar.gz bcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.zip | |
Add new linkage types to support a real frontend
llvm-svn: 5786
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ConstantReader.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Reader/ConstantReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp index d2818ef3164..d1c8644ddd4 100644 --- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp +++ b/llvm/lib/Bytecode/Reader/ConstantReader.cpp @@ -352,7 +352,8 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, // Create a placeholder for the global variable reference... GlobalVariable *GVar = - new GlobalVariable(PT->getElementType(), false, true); + new GlobalVariable(PT->getElementType(), false, + GlobalValue::InternalLinkage); // Keep track of the fact that we have a forward ref to recycle it GlobalRefs.insert(std::make_pair(std::make_pair(PT, Slot), GVar)); |

