diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-20 06:27:06 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-20 06:27:06 +0000 |
commit | 4cf132fccd8338f9aab4bd34a2f0108a13f46d6c (patch) | |
tree | c1c3515b2c9bdc9bb0f8f3f7fdb5f171e0e99845 /include/llvm/DebugInfo.h | |
parent | d73795f07eb0432db1fa3ee29c917a6018a44060 (diff) | |
download | external_llvm-4cf132fccd8338f9aab4bd34a2f0108a13f46d6c.zip external_llvm-4cf132fccd8338f9aab4bd34a2f0108a13f46d6c.tar.gz external_llvm-4cf132fccd8338f9aab4bd34a2f0108a13f46d6c.tar.bz2 |
Reorder the DIFile parameter in DINameSpace
Moving the DIFile parameter to immediately proceed the tag so that it will be a
common prefix with other DIScopes (once the DIFile is replaced with the raw
file/directory pair).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DebugInfo.h')
-rw-r--r-- | include/llvm/DebugInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 103a9b2..d8576fa 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -644,13 +644,13 @@ namespace llvm { void printInternal(raw_ostream &OS) const; public: explicit DINameSpace(const MDNode *N = 0) : DIScope(N) {} - DIScope getContext() const { return getFieldAs<DIScope>(1); } - StringRef getName() const { return getStringField(2); } + DIScope getContext() const { return getFieldAs<DIScope>(2); } + StringRef getName() const { return getStringField(3); } StringRef getDirectory() const { - return getFieldAs<DIFile>(3).getDirectory(); + return getFieldAs<DIFile>(1).getDirectory(); } StringRef getFilename() const { - return getFieldAs<DIFile>(3).getFilename(); + return getFieldAs<DIFile>(1).getFilename(); } unsigned getLineNumber() const { return getUnsignedField(4); } bool Verify() const; |