asmase icon indicating copy to clipboard operation
asmase copied to clipboard

code doesn't compile

Open nonchip opened this issue 5 years ago • 2 comments

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

nonchip avatar Aug 28 '18 11:08 nonchip

What version of llvm-libs do you have? I.e., what's the output of llvm-config --version?

osandov avatar Aug 28 '18 18:08 osandov

6.0.1

nonchip avatar Aug 28 '18 23:08 nonchip