asmase
asmase copied to clipboard
code doesn't compile
src/Assembler.cpp: In member function 'int Assembler::assembleInstruction(const string&, bytestring&, const Inputter&)':
src/Assembler.cpp:158:67: error: 'Default' is not a member of 'llvm::CodeModel'
objectFileInfo->InitMCObjectFileInfo(triple, true, CodeModel::Default,
[...] (omitting a bunch of candidates for reasons of sanity)
CXX build/Builtins/Parser.o
src/Assembler.cpp:236:37: error: 'class llvm::Expected<std::unique_ptr<llvm::object::ObjectFile> >' has no member named 'getError'; did you mean 'HasError'?
if (error_code err = objFileErr.getError()) {
^~~~~~~~
HasError
What version of llvm-libs do you have? I.e., what's the output of llvm-config --version
?
6.0.1