summaryrefslogtreecommitdiff
path: root/include/llvm/DebugInfo.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-21 22:29:36 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-21 22:29:36 +0000
commitced228dec30f088367d622720d6ccf7a22cd11e4 (patch)
tree55f02f28e1b3dfef0bc67a7f893881eb51bbcff6 /include/llvm/DebugInfo.h
parentb0b5bde01809fa861c23debd08f4926a895218fe (diff)
downloadllvm-ced228dec30f088367d622720d6ccf7a22cd11e4.tar.gz
llvm-ced228dec30f088367d622720d6ccf7a22cd11e4.tar.bz2
llvm-ced228dec30f088367d622720d6ccf7a22cd11e4.tar.xz
Move the DIFile in DISubprogram to the beginning to be a common prefix along with other DIScopes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DebugInfo.h')
-rw-r--r--include/llvm/DebugInfo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 1c06d31155..585682f357 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -410,10 +410,10 @@ namespace llvm {
public:
explicit DISubprogram(const MDNode *N = 0) : DIScope(N) {}
- DIScope getContext() const { return getFieldAs<DIScope>(1); }
- StringRef getName() const { return getStringField(2); }
- StringRef getDisplayName() const { return getStringField(3); }
- StringRef getLinkageName() const { return getStringField(4); }
+ DIScope getContext() const { return getFieldAs<DIScope>(2); }
+ StringRef getName() const { return getStringField(3); }
+ StringRef getDisplayName() const { return getStringField(4); }
+ StringRef getLinkageName() const { return getStringField(5); }
unsigned getLineNumber() const { return getUnsignedField(6); }
DICompositeType getType() const { return getFieldAs<DICompositeType>(7); }
@@ -471,11 +471,11 @@ namespace llvm {
unsigned isOptimized() const;
StringRef getFilename() const {
- return getFieldAs<DIFile>(5).getFilename();
+ return getFieldAs<DIFile>(1).getFilename();
}
StringRef getDirectory() const {
- return getFieldAs<DIFile>(5).getDirectory();
+ return getFieldAs<DIFile>(1).getDirectory();
}
/// getScopeLineNumber - Get the beginning of the scope of the