parent
c1058df66f
commit
be53eebe5a
|
@ -70,7 +70,8 @@ bool LTOModule::isBitcodeFile(const char *path) {
|
||||||
|
|
||||||
bool LTOModule::isBitcodeForTarget(MemoryBuffer *buffer,
|
bool LTOModule::isBitcodeForTarget(MemoryBuffer *buffer,
|
||||||
StringRef triplePrefix) {
|
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,
|
LTOModule *LTOModule::createFromFile(const char *path, TargetOptions options,
|
||||||
|
|
Loading…
Reference in New Issue