forked from OSchip/llvm-project
Revert rL341509 to fix massive failures on buildbots
llvm-svn: 341515
This commit is contained in:
parent
48d1398b36
commit
eb410f79b3
|
@ -1,5 +1,7 @@
|
||||||
RUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o - | \
|
RUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o %t
|
||||||
RUN: llvm-dwarfdump -v - | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s
|
RUN: llvm-dwarfdump -v %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s
|
||||||
|
|
||||||
|
FIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump -v doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished.
|
||||||
|
|
||||||
DWP from a DWO (c.dwo) and a DWP (ab.dwp, created from a.dwo and b.dwo)
|
DWP from a DWO (c.dwo) and a DWP (ab.dwp, created from a.dwo and b.dwo)
|
||||||
Make sure the entries for A and B are updated correctly when read/processed from ab.dwp
|
Make sure the entries for A and B are updated correctly when read/processed from ab.dwp
|
||||||
|
|
|
@ -697,21 +697,13 @@ int main(int argc, char **argv) {
|
||||||
// Create the output file.
|
// Create the output file.
|
||||||
std::error_code EC;
|
std::error_code EC;
|
||||||
raw_fd_ostream OutFile(OutputFilename, EC, sys::fs::F_None);
|
raw_fd_ostream OutFile(OutputFilename, EC, sys::fs::F_None);
|
||||||
Optional<buffer_ostream> BOS;
|
|
||||||
raw_pwrite_stream *OS;
|
|
||||||
if (EC)
|
if (EC)
|
||||||
return error(Twine(OutputFilename) + ": " + EC.message(), Context);
|
return error(Twine(OutputFilename) + ": " + EC.message(), Context);
|
||||||
if (OutFile.supportsSeeking()) {
|
|
||||||
OS = &OutFile;
|
|
||||||
} else {
|
|
||||||
BOS.emplace(OutFile);
|
|
||||||
OS = BOS.getPointer();
|
|
||||||
}
|
|
||||||
|
|
||||||
MCTargetOptions MCOptions = InitMCTargetOptionsFromFlags();
|
MCTargetOptions MCOptions = InitMCTargetOptionsFromFlags();
|
||||||
std::unique_ptr<MCStreamer> MS(TheTarget->createMCObjectStreamer(
|
std::unique_ptr<MCStreamer> MS(TheTarget->createMCObjectStreamer(
|
||||||
TheTriple, MC, std::unique_ptr<MCAsmBackend>(MAB),
|
TheTriple, MC, std::unique_ptr<MCAsmBackend>(MAB),
|
||||||
MAB->createObjectWriter(*OS), std::unique_ptr<MCCodeEmitter>(MCE),
|
MAB->createObjectWriter(OutFile), std::unique_ptr<MCCodeEmitter>(MCE),
|
||||||
*MSTI, MCOptions.MCRelaxAll, MCOptions.MCIncrementalLinkerCompatible,
|
*MSTI, MCOptions.MCRelaxAll, MCOptions.MCIncrementalLinkerCompatible,
|
||||||
/*DWARFMustBeAtTheEnd*/ false));
|
/*DWARFMustBeAtTheEnd*/ false));
|
||||||
if (!MS)
|
if (!MS)
|
||||||
|
|
Loading…
Reference in New Issue