mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Simplify this code so that it doesn't depend on raw_ostream being copyable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2780609a47
commit
815944d923
@ -178,9 +178,9 @@ const void* LTOCodeGenerator::compile(size_t* length, std::string& errMsg)
|
||||
// generate assembly code
|
||||
bool genResult = false;
|
||||
{
|
||||
raw_fd_ostream asmFD(raw_fd_ostream(uniqueAsmPath.c_str(),
|
||||
/*Binary=*/false, /*Force=*/true,
|
||||
errMsg));
|
||||
raw_fd_ostream asmFD(uniqueAsmPath.c_str(),
|
||||
/*Binary=*/false, /*Force=*/true,
|
||||
errMsg);
|
||||
formatted_raw_ostream asmFile(asmFD);
|
||||
if (!errMsg.empty())
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user