diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-04-25 00:04:49 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-04-25 00:04:49 +0000 |
commit | ff4282a204301a457f3dba6e6517c565de83abdc (patch) | |
tree | f970e0f8007d831582f3b6f307c59564acdf4522 /llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp | |
parent | 2dd5deb1e6f9668068bcb9e1c0658855f2f8abb3 (diff) | |
download | llvm-ff4282a204301a457f3dba6e6517c565de83abdc.zip llvm-ff4282a204301a457f3dba6e6517c565de83abdc.tar.gz llvm-ff4282a204301a457f3dba6e6517c565de83abdc.tar.bz2 |
Revert "Debug info for optimized code: Support variables that are on the stack and"
This reverts commit 207130 for buildbot breakage.
llvm-svn: 207162
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp index 7c124b8..c134454 100644 --- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp @@ -688,13 +688,10 @@ InstrEmitter::EmitDbgValue(SDDbgValue *SD, MIB.addReg(0U); } - // Indirect addressing is indicated by an Imm as the second parameter. - if (SD->isIndirect()) + if (Offset != 0) // Indirect addressing. MIB.addImm(Offset); - else { - assert(Offset == 0 && "direct value cannot have an offset"); + else MIB.addReg(0U, RegState::Debug); - } MIB.addMetadata(MDPtr); |