From c204410d6bc435e7cb8ea768759a54135e8e92b5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 22 Mar 2013 05:47:44 +0000 Subject: Reorder the DIFile field in DILexicalBlock to become a prefix common with other DIScopes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177703 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index f8eba37..f6ac869 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -590,14 +590,14 @@ namespace llvm { class DILexicalBlock : public DIScope { public: explicit DILexicalBlock(const MDNode *N = 0) : DIScope(N) {} - DIScope getContext() const { return getFieldAs(1); } - unsigned getLineNumber() const { return getUnsignedField(2); } - unsigned getColumnNumber() const { return getUnsignedField(3); } + DIScope getContext() const { return getFieldAs(2); } + unsigned getLineNumber() const { return getUnsignedField(3); } + unsigned getColumnNumber() const { return getUnsignedField(4); } StringRef getDirectory() const { - return getFieldAs(4).getDirectory(); + return getFieldAs(1).getDirectory(); } StringRef getFilename() const { - return getFieldAs(4).getFilename(); + return getFieldAs(1).getFilename(); } bool Verify() const; }; -- cgit v1.1