summaryrefslogtreecommitdiff
path: root/include/llvm/IntrinsicInst.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-31 01:22:29 +0000
committerChris Lattner <sabre@nondot.org>2009-12-31 01:22:29 +0000
commit5d0cacdbb6577f2449986f345858db17dc1bcf59 (patch)
treede365f7b73e384392ca19f8cb9bc0c9600712003 /include/llvm/IntrinsicInst.h
parentb76359e36e75dfe16c5153c3cac903efbb2cd8d7 (diff)
downloadllvm-5d0cacdbb6577f2449986f345858db17dc1bcf59.tar.gz
llvm-5d0cacdbb6577f2449986f345858db17dc1bcf59.tar.bz2
llvm-5d0cacdbb6577f2449986f345858db17dc1bcf59.tar.xz
rename "elements" of metadata to "operands". "Elements" are
things that occur in types. "operands" are things that occur in values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IntrinsicInst.h')
-rw-r--r--include/llvm/IntrinsicInst.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h
index a516409296..9893e1f878 100644
--- a/include/llvm/IntrinsicInst.h
+++ b/include/llvm/IntrinsicInst.h
@@ -98,8 +98,8 @@ namespace llvm {
return unsigned(cast<ConstantInt>(getOperand(2))->getZExtValue());
}
- Value* getFileName() const;
- Value* getDirectory() const;
+ Value *getFileName() const;
+ Value *getDirectory() const;
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const DbgStopPointInst *) { return true; }
@@ -175,8 +175,8 @@ namespace llvm {
/// DbgValueInst - This represents the llvm.dbg.value instruction.
///
struct DbgValueInst : public DbgInfoIntrinsic {
- Value *getValue() const {
- return cast<MDNode>(getOperand(1))->getElement(0);
+ Value *getValue() const {
+ return cast<MDNode>(getOperand(1))->getOperand(0);
}
Value *getOffset() const { return getOperand(2); }
MDNode *getVariable() const { return cast<MDNode>(getOperand(3)); }