mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Make strings be internal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e81dc1dd94
commit
9e00579228
@ -69,7 +69,8 @@ PrintMethodNameForType(const Type* type)
|
||||
|
||||
static inline GlobalVariable *GetStringRef(Module *M, const string &str) {
|
||||
ConstPoolArray *Init = ConstPoolArray::get(str);
|
||||
GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true, Init);
|
||||
GlobalVariable *GV = new GlobalVariable(Init->getType(), /*Const*/true,
|
||||
/*intern*/true, Init);
|
||||
M->getGlobalList().push_back(GV);
|
||||
return GV;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user