mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Follow-up to r205973: change the return type to const MDNode*.
llvm-svn: 205974
This commit is contained in:
parent
52b43b7eb6
commit
bcfb740ea8
@ -246,10 +246,9 @@ public:
|
||||
|
||||
/// getDebugVariable() - Return the debug variable referenced by
|
||||
/// this DBG_VALUE instruction.
|
||||
DIVariable getDebugVariable() const {
|
||||
const MDNode *getDebugVariable() const {
|
||||
assert(isDebugValue() && "not a DBG_VALUE");
|
||||
const MDNode *Var = getOperand(getNumOperands() - 1).getMetadata();
|
||||
return DIVariable(Var);
|
||||
return getOperand(getNumOperands() - 1).getMetadata();
|
||||
}
|
||||
|
||||
/// emitError - Emit an error referring to the source location of this
|
||||
|
Loading…
Reference in New Issue
Block a user