mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 00:24:25 +00:00
MIR Serialization: Serialize the external symbol machine operands.
Reviewers: Duncan P. N. Exon Smith git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -322,6 +322,13 @@ MachineFunction::extractStoreMemRefs(MachineInstr::mmo_iterator Begin,
|
||||
return std::make_pair(Result, Result + Num);
|
||||
}
|
||||
|
||||
const char *MachineFunction::createExternalSymbolName(StringRef Name) {
|
||||
char *Dest = Allocator.Allocate<char>(Name.size() + 1);
|
||||
std::copy(Name.begin(), Name.end(), Dest);
|
||||
Dest[Name.size()] = 0;
|
||||
return Dest;
|
||||
}
|
||||
|
||||
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||
void MachineFunction::dump() const {
|
||||
print(dbgs());
|
||||
|
Reference in New Issue
Block a user