aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/DebugInfo.cpp
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
commitda30cf84c3b5bfbbe960c3d0bfba1750048c8ab3 (patch)
treee2f4266a8ef907e3717cf2a51c55c7930874d4b8 /llvm/lib/Analysis/DebugInfo.cpp
parent088df09f27ee131aaa56c7b209e443b0dcd71674 (diff)
downloadllvm-da30cf84c3b5bfbbe960c3d0bfba1750048c8ab3.zip
llvm-da30cf84c3b5bfbbe960c3d0bfba1750048c8ab3.tar.gz
llvm-da30cf84c3b5bfbbe960c3d0bfba1750048c8ab3.tar.bz2
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. llvm-svn: 135486
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index 8fac3fb..b42e946 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/lib/Analysis/DebugInfo.cpp
@@ -111,9 +111,7 @@ Function *DIDescriptor::getFunctionField(unsigned Elt) const {
unsigned DIVariable::getNumAddrElements() const {
if (getVersion() <= llvm::LLVMDebugVersion8)
return DbgNode->getNumOperands()-6;
- if (getVersion() == llvm::LLVMDebugVersion9)
- return DbgNode->getNumOperands()-7;
- return DbgNode->getNumOperands()-8;
+ return DbgNode->getNumOperands()-7;
}
@@ -762,19 +760,6 @@ NamedMDNode *llvm::getOrInsertFnSpecificMDNode(Module &M, StringRef FuncName) {
return M.getOrInsertNamedMetadata(Name.str());
}
-/// createInlinedVariable - Create a new inlined variable based on current
-/// variable.
-/// @param DV Current Variable.
-/// @param InlinedScope Location at current variable is inlined.
-DIVariable llvm::createInlinedVariable(MDNode *DV, MDNode *InlinedScope,
- LLVMContext &VMContext) {
- SmallVector<Value *, 16> Elts;
- // Insert inlined scope as 7th element.
- for (unsigned i = 0, e = DV->getNumOperands(); i != e; ++i)
- i == 7 ? Elts.push_back(InlinedScope) :
- Elts.push_back(DV->getOperand(i));
- return DIVariable(MDNode::get(VMContext, Elts));
-}
//===----------------------------------------------------------------------===//
// DebugInfoFinder implementations.