[llvm] [Orc][examples] Drop target triple from input for remote debugging test (PR #74831)
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 06:35:36 PST 2023
================
@@ -173,24 +174,15 @@ int main(int argc, char *argv[]) {
TSMs.push_back(ExitOnErr(parseExampleModuleFromFile(Path)));
}
- StringRef TT;
+ std::string TT;
StringRef MainModuleName;
TSMs.front().withModuleDo([&MainModuleName, &TT](Module &M) {
MainModuleName = M.getName();
TT = M.getTargetTriple();
+ if (TT.empty())
+ TT = sys::getProcessTriple();
});
- for (const ThreadSafeModule &TSM : TSMs)
----------------
RoboTux wrote:
Why does this need to be removed? Will the program fail gracefully if a module has a triplet that is not supported by the built LLVM?
https://github.com/llvm/llvm-project/pull/74831
More information about the llvm-commits
mailing list