aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-22 05:47:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-22 05:47:44 +0000
commitc204410d6bc435e7cb8ea768759a54135e8e92b5 (patch)
treeab44db08aa63a8f94a3e09d6491c4156c624af96 /include
parent4087d67a567c2e276354e3778463f97c6ee0c021 (diff)
downloadexternal_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.zip
external_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.tar.gz
external_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DebugInfo.h10
1 files changed, 5 insertions, 5 deletions
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<DIScope>(1); }
- unsigned getLineNumber() const { return getUnsignedField(2); }
- unsigned getColumnNumber() const { return getUnsignedField(3); }
+ DIScope getContext() const { return getFieldAs<DIScope>(2); }
+ unsigned getLineNumber() const { return getUnsignedField(3); }
+ unsigned getColumnNumber() const { return getUnsignedField(4); }
StringRef getDirectory() const {
- return getFieldAs<DIFile>(4).getDirectory();
+ return getFieldAs<DIFile>(1).getDirectory();
}
StringRef getFilename() const {
- return getFieldAs<DIFile>(4).getFilename();
+ return getFieldAs<DIFile>(1).getFilename();
}
bool Verify() const;
};