forked from OSchip/llvm-project
Fixup compilation/test failures after r354960 and r355013.
llvm-svn: 355034
This commit is contained in:
parent
b4a9d3e83e
commit
f33b1f49b7
|
@ -39,8 +39,9 @@ bool __sanitizer_symbolize_code(const char *ModuleName, uint64_t ModuleOffset,
|
|||
llvm::symbolize::DIPrinter Printer(OS);
|
||||
// TODO: it is neccessary to set proper SectionIndex here.
|
||||
// object::SectionedAddress::UndefSection works for only absolute addresses.
|
||||
auto ResOrErr =
|
||||
getDefaultSymbolizer()->symbolizeInlinedCode(ModuleName, {ModuleOffset, object::SectionedAddress::UndefSection});
|
||||
auto ResOrErr = getDefaultSymbolizer()->symbolizeInlinedCode(
|
||||
ModuleName,
|
||||
{ModuleOffset, llvm::object::SectionedAddress::UndefSection});
|
||||
Printer << (ResOrErr ? ResOrErr.get() : llvm::DIInliningInfo());
|
||||
}
|
||||
return __sanitizer::internal_snprintf(Buffer, MaxLength, "%s",
|
||||
|
@ -55,8 +56,9 @@ bool __sanitizer_symbolize_data(const char *ModuleName, uint64_t ModuleOffset,
|
|||
llvm::symbolize::DIPrinter Printer(OS);
|
||||
// TODO: it is neccessary to set proper SectionIndex here.
|
||||
// object::SectionedAddress::UndefSection works for only absolute addresses.
|
||||
auto ResOrErr =
|
||||
getDefaultSymbolizer()->symbolizeData(ModuleName, {ModuleOffset, object::SectionedAddress::UndefSection});
|
||||
auto ResOrErr = getDefaultSymbolizer()->symbolizeData(
|
||||
ModuleName,
|
||||
{ModuleOffset, llvm::object::SectionedAddress::UndefSection});
|
||||
Printer << (ResOrErr ? ResOrErr.get() : llvm::DIGlobal());
|
||||
}
|
||||
return __sanitizer::internal_snprintf(Buffer, MaxLength, "%s",
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
|
||||
# Overwrite one of the members with a member of a different size to show that
|
||||
# the size field in the member header is not relevant.
|
||||
# RUN: rm -f %t/2.o
|
||||
# RUN: cp %t/1.o %t/2.o
|
||||
# RUN: llvm-readobj --file-headers %t.a | FileCheck %s --check-prefix=RESIZED
|
||||
|
||||
|
|
Loading…
Reference in New Issue