[llvm-commits] CVS: llvm/tools/lto/Makefile lto.cpp

Chandler Carruth chandlerc at gmail.com
Sun Jan 7 22:25:45 PST 2007



Changes in directory llvm/tools/lto:

Makefile updated: 1.6 -> 1.7
lto.cpp updated: 1.28 -> 1.29
---
Log message:

Build libLLVMlto on non-Darwin architectures. Resolves PR1055: http://llvm.org/PR1055 : http://llvm.org/PR1055: http://llvm.org/PR1055 


---
Diffs of the changes:  (+10 -3)

 Makefile |   10 +++++++---
 lto.cpp  |    3 +++
 2 files changed, 10 insertions(+), 3 deletions(-)


Index: llvm/tools/lto/Makefile
diff -u llvm/tools/lto/Makefile:1.6 llvm/tools/lto/Makefile:1.7
--- llvm/tools/lto/Makefile:1.6	Thu Sep  7 16:36:55 2006
+++ llvm/tools/lto/Makefile	Mon Jan  8 00:25:29 2007
@@ -11,9 +11,13 @@
 LIBRARYNAME = LLVMlto
 
 LINK_LIBS_IN_SHARED = 1
-SHARED_LIBRARY = 1
-LOADABLE_MODULE = 1
-DONT_BUILD_RELINKED = 1
+ifeq ($(OS),Darwin)
+  SHARED_LIBRARY = 1
+  LOADABLE_MODULE = 1
+  DONT_BUILD_RELINKED = 1
+else
+  BUILD_ARCHIVE = 1
+endif
 
 # Include this here so we can get the configuration of the targets
 # that have been configured for construction. We have to do this 


Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.28 llvm/tools/lto/lto.cpp:1.29
--- llvm/tools/lto/lto.cpp:1.28	Sat Jan  6 17:51:31 2007
+++ llvm/tools/lto/lto.cpp	Mon Jan  8 00:25:29 2007
@@ -455,6 +455,9 @@
   return LTO_OPT_SUCCESS;
 }
 
+/// Unused pure-virtual destructor. Must remain empty.
+LinkTimeOptimizer::~LinkTimeOptimizer() {}
+
 /// Destruct LTO. Delete all modules, symbols and target.
 LTO::~LTO() {
   






More information about the llvm-commits mailing list