mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
Remove #include of metadata.h from intrinsicinst.h. The only
method that needs it (DbgValueInst::getValue) has been moved out of line. llvm-svn: 92323
This commit is contained in:
parent
c12382b7c8
commit
8e4ab636ed
@ -25,7 +25,6 @@
|
|||||||
#define LLVM_INTRINSICINST_H
|
#define LLVM_INTRINSICINST_H
|
||||||
|
|
||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/Metadata.h"
|
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/Instructions.h"
|
#include "llvm/Instructions.h"
|
||||||
#include "llvm/Intrinsics.h"
|
#include "llvm/Intrinsics.h"
|
||||||
@ -175,9 +174,7 @@ namespace llvm {
|
|||||||
/// DbgValueInst - This represents the llvm.dbg.value instruction.
|
/// DbgValueInst - This represents the llvm.dbg.value instruction.
|
||||||
///
|
///
|
||||||
struct DbgValueInst : public DbgInfoIntrinsic {
|
struct DbgValueInst : public DbgInfoIntrinsic {
|
||||||
Value *getValue() const {
|
Value *getValue() const;
|
||||||
return cast<MDNode>(getOperand(1))->getOperand(0);
|
|
||||||
}
|
|
||||||
Value *getOffset() const { return getOperand(2); }
|
Value *getOffset() const { return getOperand(2); }
|
||||||
MDNode *getVariable() const { return cast<MDNode>(getOperand(3)); }
|
MDNode *getVariable() const { return cast<MDNode>(getOperand(3)); }
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ class AssemblyAnnotationWriter;
|
|||||||
class ValueHandleBase;
|
class ValueHandleBase;
|
||||||
class LLVMContext;
|
class LLVMContext;
|
||||||
class Twine;
|
class Twine;
|
||||||
|
class MDNode;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Value Class
|
// Value Class
|
||||||
@ -350,6 +351,9 @@ template <> inline bool isa_impl<GlobalValue, Value>(const Value &Val) {
|
|||||||
return isa<GlobalVariable>(Val) || isa<Function>(Val) ||
|
return isa<GlobalVariable>(Val) || isa<Function>(Val) ||
|
||||||
isa<GlobalAlias>(Val);
|
isa<GlobalAlias>(Val);
|
||||||
}
|
}
|
||||||
|
template <> inline bool isa_impl<MDNode, Value>(const Value &Val) {
|
||||||
|
return Val.getValueID() == Value::MDNodeVal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Value* is only 4-byte aligned.
|
// Value* is only 4-byte aligned.
|
||||||
|
@ -69,3 +69,11 @@ Value *DbgStopPointInst::getDirectory() const {
|
|||||||
assert(LLVMDebugVersion == (7 << 16) && "Verify operand indices");
|
assert(LLVMDebugVersion == (7 << 16) && "Verify operand indices");
|
||||||
return getContext()->getOperand(4);
|
return getContext()->getOperand(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
/// DbgValueInst - This represents the llvm.dbg.value instruction.
|
||||||
|
///
|
||||||
|
|
||||||
|
Value *DbgValueInst::getValue() const {
|
||||||
|
return cast<MDNode>(getOperand(1))->getOperand(0);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user