parent
c1058df66f
commit
be53eebe5a
|
@ -70,7 +70,8 @@ bool LTOModule::isBitcodeFile(const char *path) {
|
|||
|
||||
bool LTOModule::isBitcodeForTarget(MemoryBuffer *buffer,
|
||||
StringRef triplePrefix) {
|
||||
return getBitcodeTargetTriple(buffer, getGlobalContext()) == triplePrefix;
|
||||
std::string Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
|
||||
return StringRef(Triple).startswith(triplePrefix);
|
||||
}
|
||||
|
||||
LTOModule *LTOModule::createFromFile(const char *path, TargetOptions options,
|
||||
|
|
Loading…
Reference in New Issue