summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-07-19 16:32:50 +0000
committerBob Wilson <bob.wilson@apple.com>2011-07-19 16:32:50 +0000
commitf51bb7cef8b0aa25506308c2ec0fcde58e1dc7ed (patch)
tree7d99d66215f2cfef128cc874115e24861cc96a46 /include
parent66fc541abef7d391d5632cc8f1c2c0b6d34f11a6 (diff)
downloadllvm-f51bb7cef8b0aa25506308c2ec0fcde58e1dc7ed.tar.gz
llvm-f51bb7cef8b0aa25506308c2ec0fcde58e1dc7ed.tar.bz2
llvm-f51bb7cef8b0aa25506308c2ec0fcde58e1dc7ed.tar.xz
Revert "Make a provision to encode inline location in a variable. This will enable dwarf writer to easily distinguish between two instances of a inlined variable in one basic block."
This reverts commit 9fec5e346efdf744b151ae6604f912908315fa7a. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/DebugInfo.h11
-rw-r--r--include/llvm/Support/Dwarf.h5
2 files changed, 3 insertions, 13 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index 77b95dbc2e..fbee5a6311 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -628,9 +628,7 @@ namespace llvm {
uint64_t getAddrElement(unsigned Idx) const {
if (getVersion() <= llvm::LLVMDebugVersion8)
return getUInt64Field(Idx+6);
- if (getVersion() == llvm::LLVMDebugVersion9)
- return getUInt64Field(Idx+7);
- return getUInt64Field(Idx+8);
+ return getUInt64Field(Idx+7);
}
/// isBlockByrefVariable - Return true if the variable was declared as
@@ -718,13 +716,6 @@ namespace llvm {
/// suitable to hold function specific information.
NamedMDNode *getFnSpecificMDNode(const Module &M, StringRef Name);
- /// createInlinedVariable - Create a new inlined variable based on current
- /// variable.
- /// @param DV Current Variable.
- /// @param InlinedScope Location at current variable is inlined.
- DIVariable createInlinedVariable(MDNode *DV, MDNode *InlinedScope,
- LLVMContext &VMContext);
-
class DebugInfoFinder {
public:
/// processModule - Process entire module and collect debug info
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h
index 3c76902c84..70bac0c9fc 100644
--- a/include/llvm/Support/Dwarf.h
+++ b/include/llvm/Support/Dwarf.h
@@ -22,9 +22,8 @@ namespace llvm {
// Debug info constants.
enum {
- LLVMDebugVersion = (10 << 16), // Current version of debug information.
- LLVMDebugVersion9 = (9 << 16), // Constant for version 9.
- LLVMDebugVersion8 = (8 << 16), // Constant for version 8.
+ LLVMDebugVersion = (9 << 16), // Current version of debug information.
+ LLVMDebugVersion8 = (8 << 16), // Cconstant for version 8.
LLVMDebugVersion7 = (7 << 16), // Constant for version 7.
LLVMDebugVersion6 = (6 << 16), // Constant for version 6.
LLVMDebugVersion5 = (5 << 16), // Constant for version 5.