reorder the fields in DILexicalBlockFile to match the common prefix for DIScopes
[oota-llvm.git] / include / llvm / DebugInfo.h
index 0c8468927f27cb1ce7bf946109dcac7e461ee4f5..05ca3853c0cc75bc89ec1613502514809e4e1b36 100644 (file)
@@ -605,12 +605,12 @@ namespace llvm {
     unsigned getLineNumber() const { return getScope().getLineNumber(); }
     unsigned getColumnNumber() const { return getScope().getColumnNumber(); }
     StringRef getDirectory() const {
-      return getFieldAs<DIFile>(2).getDirectory();
+      return getFieldAs<DIFile>(1).getDirectory();
     }
     StringRef getFilename() const {
-      return getFieldAs<DIFile>(2).getFilename();
+      return getFieldAs<DIFile>(1).getFilename();
     }
-    DILexicalBlock getScope() const { return getFieldAs<DILexicalBlock>(1); }
+    DILexicalBlock getScope() const { return getFieldAs<DILexicalBlock>(2); }
     bool Verify() const;
   };