[PATCH] D153449: [llvm-profgen] Remove target triple check to allow for more targets

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 10:16:41 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG09742be8186b: [llvm-profgen] Remove target triple check to allow for more targets (authored by hoy).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153449/new/

https://reviews.llvm.org/D153449

Files:
  llvm/tools/llvm-profgen/ProfiledBinary.cpp


Index: llvm/tools/llvm-profgen/ProfiledBinary.cpp
===================================================================
--- llvm/tools/llvm-profgen/ProfiledBinary.cpp
+++ llvm/tools/llvm-profgen/ProfiledBinary.cpp
@@ -215,9 +215,7 @@
     exitWithError("not a valid Elf image", Path);
 
   TheTriple = Obj->makeTriple();
-  // Current only support X86
-  if (!TheTriple.isX86())
-    exitWithError("unsupported target", TheTriple.getTriple());
+
   LLVM_DEBUG(dbgs() << "Loading " << Path << "\n");
 
   // Find the preferred load address for text sections.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153449.534004.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230623/053e635d/attachment.bin>


More information about the llvm-commits mailing list