Changes in directory llvm/tools/lto:

lto.cpp updated: 1.11 -> 1.12
---
Log message:

Add getTargetTriple() that linker can use to query target architecture.


---
Diffs of the changes:  (+11 -0)

 lto.cpp |   11 +++++++++++
 1 files changed, 11 insertions(+)


Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.11 llvm/tools/lto/lto.cpp:1.12
--- llvm/tools/lto/lto.cpp:1.11 Wed Sep  6 13:50:26 2006
+++ llvm/tools/lto/lto.cpp      Wed Sep  6 15:16:28 2006
@@ -116,6 +116,17 @@
   return m;
 }
 
+/// InputFilename is a LLVM bytecode file. Reade this bytecode file and 
+/// set corresponding target triplet string.
+void
+LinkTimeOptimizer::getTargetTriple(const std::string &InputFilename, 
+                                  std::string &targetTriple)
+{
+  Module *m = getModule(InputFilename);
+  if (m)
+    targetTriple = m->getTargetTriple();
+}
+
 /// InputFilename is a LLVM bytecode file. Read it using bytecode reader.
 /// Collect global functions and symbol names in symbols vector.
 /// Collect external references in references vector.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to