mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Fixed the build failure of yaml2obj in XCOFFEmitter.cpp:
error: ambiguous overload for 'operator==' (operand types are 'llvm::yaml::Hex16' and 'llvm::XCOFF::MagicNumber') Is64Bit = Obj.Header.Magic == XCOFF::XCOFF64;
This commit is contained in:
parent
4a3c52750c
commit
4f2a658209
@ -32,7 +32,7 @@ class XCOFFWriter {
|
||||
public:
|
||||
XCOFFWriter(XCOFFYAML::Object &Obj, raw_ostream &OS, yaml::ErrorHandler EH)
|
||||
: Obj(Obj), W(OS, support::big), ErrHandler(EH) {
|
||||
Is64Bit = Obj.Header.Magic == XCOFF::XCOFF64;
|
||||
Is64Bit = Obj.Header.Magic == (llvm::yaml::Hex16)XCOFF::XCOFF64;
|
||||
}
|
||||
bool writeXCOFF();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user