mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Add new linkage types to support a real frontend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -154,7 +154,8 @@ static inline GlobalVariable *getStringRef(Module *M, const string &str) {
|
||||
|
||||
// Create the global variable and record it in the module
|
||||
// The GV will be renamed to a unique name if needed.
|
||||
GlobalVariable *GV = new GlobalVariable(Init->getType(), true, true, Init,
|
||||
GlobalVariable *GV = new GlobalVariable(Init->getType(), true,
|
||||
GlobalValue::InternalLinkage, Init,
|
||||
"trstr");
|
||||
M->getGlobalList().push_back(GV);
|
||||
return GV;
|
||||
|
Reference in New Issue
Block a user