mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Just a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a45a327e8d
commit
524185af3f
@ -87,6 +87,9 @@ bool InsertTraceCode::doInitialization(Module *M) {
|
||||
static inline GlobalVariable *getStringRef(Module *M, const string &str) {
|
||||
// Create a constant internal string reference...
|
||||
Constant *Init = ConstantArray::get(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,
|
||||
"trstr");
|
||||
M->getGlobalList().push_back(GV);
|
||||
|
Loading…
x
Reference in New Issue
Block a user