mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Revert "Convert a few std::strings to StringRef."
This reverts commit r212342. We can get a StringRef into the current Record, but not one in the bitcode itself since the string is compressed in it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,8 +63,8 @@ bool LTOModule::isBitcodeFile(const char *path) {
|
||||
|
||||
bool LTOModule::isBitcodeForTarget(MemoryBuffer *buffer,
|
||||
StringRef triplePrefix) {
|
||||
StringRef Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
|
||||
return Triple.startswith(triplePrefix);
|
||||
std::string Triple = getBitcodeTargetTriple(buffer, getGlobalContext());
|
||||
return StringRef(Triple).startswith(triplePrefix);
|
||||
}
|
||||
|
||||
LTOModule *LTOModule::createFromFile(const char *path, TargetOptions options,
|
||||
|
||||
Reference in New Issue
Block a user