summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-08 04:26:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-08 04:26:23 +0000
commitcc52c2ce8aad523affcae0e15c20f9d4b7ecccc3 (patch)
tree585c84427fd1ce4423ce5b6209b284c86923e553
parent6838b3c245e4ab7145d99dcbbcdb9eb52c1b56ec (diff)
downloadbcm5719-llvm-cc52c2ce8aad523affcae0e15c20f9d4b7ecccc3.tar.gz
bcm5719-llvm-cc52c2ce8aad523affcae0e15c20f9d4b7ecccc3.zip
Remove variables that are not used by any of the LLVM makefiles
llvm-svn: 18614
-rw-r--r--llvm/Makefile.rules14
-rw-r--r--llvm/docs/MakefileGuide.html2
2 files changed, 7 insertions, 9 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index a160c02d30b..f5cfb0a1578 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -146,20 +146,24 @@ install-bytecode:: install-bytecode-local
# Variables derived from configuration we are building
#--------------------------------------------------------------------
+CommonCXXOpts := -Woverloaded-virtual
+
ifdef ENABLE_PROFILING
BuildMode := Profile
- CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
+ CXX.Flags := -O3 -DNDEBUG $(CommonCXXOpts) -felide-constructors \
+ -finline-functions -pg
C.Flags := -O3 -DNDEBUG -pg
LD.Flags := -O3 -DNDEBUG -pg
else
ifdef ENABLE_OPTIMIZED
BuildMode := Release
- CXX.Flags := -O3 -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer
+ CXX.Flags := -O3 -DNDEBUG $(CommonCXXOpts) -finline-functions \
+ -felide-constructors -fomit-frame-pointer
C.Flags := -O3 -DNDEBUG -fomit-frame-pointer
LD.Flags := -O3 -DNDEBUG
else
BuildMode := Debug
- CXX.Flags := -g -D_DEBUG
+ CXX.Flags := -g -D_DEBUG $(CommonCXXOpts)
C.Flags := -g -D_DEBUG
LD.Flags := -g -D_DEBUG
KEEP_SYMBOLS := 1
@@ -214,10 +218,6 @@ ifndef LLVMGXX
LLVMGXX := PATH=$(LLVMToolDir):$(PATH) $(LLVMGCCDIR)/bin/g++
endif
-# Need a better way to compute this.
-LLVMGCCLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))/
-LLVMGCCStdCXXLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libstdc++.a))/
-
#--------------------------------------------------------------------
# Adjust to user's request
#--------------------------------------------------------------------
diff --git a/llvm/docs/MakefileGuide.html b/llvm/docs/MakefileGuide.html
index 8ba3f2a750f..42c2b1cea91 100644
--- a/llvm/docs/MakefileGuide.html
+++ b/llvm/docs/MakefileGuide.html
@@ -906,8 +906,6 @@
LibTool.Flags
Link
LinkModule
- LLVMGCCLibDir
- LLVMGCCStdCXXLibDir
LLVMLibDir
LLVMLibsOptions
LLVMLibsPaths
OpenPOWER on IntegriCloud