forked from OSchip/llvm-project
parent
869ad45f8f
commit
a5d93247c2
|
@ -31,6 +31,7 @@
|
|||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/Analysis/DIBuilder.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
|
@ -644,12 +645,12 @@ void DwarfDebug::addComplexAddress(DbgVariable *&DV, DIE *Die,
|
|||
for (unsigned i = 0, N = DV->getNumAddrElements(); i < N; ++i) {
|
||||
uint64_t Element = DV->getAddrElement(i);
|
||||
|
||||
if (Element == DIFactory::OpPlus) {
|
||||
if (Element == DIBuilder::OpPlus) {
|
||||
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst);
|
||||
addUInt(Block, 0, dwarf::DW_FORM_udata, DV->getAddrElement(++i));
|
||||
} else if (Element == DIFactory::OpDeref) {
|
||||
} else if (Element == DIBuilder::OpDeref) {
|
||||
addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref);
|
||||
} else llvm_unreachable("unknown DIFactory Opcode");
|
||||
} else llvm_unreachable("unknown DIBuilder Opcode");
|
||||
}
|
||||
|
||||
// Now attach the location information to the DIE.
|
||||
|
|
Loading…
Reference in New Issue