mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Print variable's inline location in debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48d726fbce
commit
a2b552d0ae
@ -25,6 +25,7 @@
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Metadata.h"
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/ADT/IntervalMap.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
|
||||
@ -317,8 +318,10 @@ public:
|
||||
} // namespace
|
||||
|
||||
void UserValue::print(raw_ostream &OS, const TargetMachine *TM) {
|
||||
if (const MDString *MDS = dyn_cast<MDString>(variable->getOperand(2)))
|
||||
OS << "!\"" << MDS->getString() << "\"\t";
|
||||
DIVariable DV(variable);
|
||||
OS << "!\"";
|
||||
DV.printExtendedName(OS);
|
||||
OS << "\"\t";
|
||||
if (offset)
|
||||
OS << '+' << offset;
|
||||
for (LocMap::const_iterator I = locInts.begin(); I.valid(); ++I) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user