[PATCH] D21779: [LTO] Infer EKind/EMachine from Bitcode files
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 28 07:21:32 PDT 2016
mehdi_amini added inline comments.
================
Comment at: ELF/InputFiles.cpp:694
@@ +693,3 @@
+ const Module &M = Obj->getModule();
+ std::string TripleStr = M.getTargetTriple();
+ Triple TheTriple = Triple(TripleStr);
----------------
There is an API to get the Triple from a memory buffer without parsing the IR (I don't know if you need a module for something else here).
http://reviews.llvm.org/D21779
More information about the llvm-commits
mailing list