Skip to content
Snippets Groups Projects
Commit de0faded authored by Petr Rockai's avatar Petr Rockai
Browse files

tools: Port divcc to LLVM 5.0.

parent 42c97f26
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ DIVINE_RELAX_WARNINGS ...@@ -14,6 +14,7 @@ DIVINE_RELAX_WARNINGS
#include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCStreamer.h"
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/ELF.h" #include "llvm/Support/ELF.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetOptions.h"
#include "llvm-c/Target.h" #include "llvm-c/Target.h"
DIVINE_UNRELAX_WARNINGS DIVINE_UNRELAX_WARNINGS
...@@ -84,8 +85,8 @@ int emitObjFile( Module &m, std::string filename ) ...@@ -84,8 +85,8 @@ int emitObjFile( Module &m, std::string filename )
PM_BC PM; PM_BC PM;
if ( TargetMachine->addPassesToEmitFile( PM, dest, TargetMachine::CGFT_ObjectFile, false /*DisableVerify*/, if ( TargetMachine->addPassesToEmitFile( PM, dest, TargetMachine::CGFT_ObjectFile, false,
nullptr, nullptr, nullptr, nullptr, nullptr ) ) nullptr, nullptr, nullptr, nullptr ) )
{ {
errs() << "TargetMachine can't emit a file of this type\n"; errs() << "TargetMachine can't emit a file of this type\n";
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment