mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
Improve the debug output of DwarfDebug::buildLocationList().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
692e80bd5c
commit
388c01f356
@ -76,6 +76,20 @@ public:
|
||||
const DIExpression *getExpression() const { return Expression; }
|
||||
friend bool operator==(const Value &, const Value &);
|
||||
friend bool operator<(const Value &, const Value &);
|
||||
void dump() const {
|
||||
if (isLocation()) {
|
||||
llvm::dbgs() << "Loc = { reg=" << Loc.getReg() << " ";
|
||||
if (Loc.isIndirect())
|
||||
llvm::dbgs() << '+' << Loc.getOffset();
|
||||
llvm::dbgs() << "} ";
|
||||
}
|
||||
else if (isConstantInt())
|
||||
Constant.CIP->dump();
|
||||
else if (isConstantFP())
|
||||
Constant.CFP->dump();
|
||||
if (Expression)
|
||||
Expression->dump();
|
||||
}
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -916,7 +916,7 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
|
||||
DEBUG({
|
||||
dbgs() << CurEntry->getValues().size() << " Values:\n";
|
||||
for (auto &Value : CurEntry->getValues())
|
||||
Value.getExpression()->dump();
|
||||
Value.dump();
|
||||
dbgs() << "-----\n";
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user