[llvm-commits] CVS: llvm/tools/llvmc/llvmc.cpp

Reid Spencer reid at x10sys.com
Sun Aug 29 23:27:43 PDT 2004



Changes in directory llvm/tools/llvmc:

llvmc.cpp updated: 1.12 -> 1.13
---
Log message:

Pass lists of -I and -D options through to the Compiler Driver.
Handle -g and -Wxxx for GCC compatibility 


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

Index: llvm/tools/llvmc/llvmc.cpp
diff -u llvm/tools/llvmc/llvmc.cpp:1.12 llvm/tools/llvmc/llvmc.cpp:1.13
--- llvm/tools/llvmc/llvmc.cpp:1.12	Sun Aug 29 19:06:52 2004
+++ llvm/tools/llvmc/llvmc.cpp	Mon Aug 30 01:27:32 2004
@@ -100,6 +100,14 @@
 cl::list<std::string> Libraries("l", cl::Prefix,
   cl::desc("Specify libraries to link to"), cl::value_desc("library prefix"));
 
+cl::list<std::string> Includes("I", cl::Prefix,
+  cl::desc("Specify location to search for included source"), 
+  cl::value_desc("include directory"));
+
+cl::list<std::string> Defines("D", cl::Prefix,
+  cl::desc("Specify a symbol to define for source configuration"),
+  cl::value_desc("symbol definition"));
+
 
 //===------------------------------------------------------------------------===
 //===          OUTPUT OPTIONS
@@ -117,6 +125,9 @@
 cl::opt<bool> Native("native", cl::init(false),
   cl::desc("Generative native object and executables instead of bytecode"));
 
+cl::opt<bool> DebugOutput("g", cl::init(false),
+  cl::desc("Generate objects that include debug symbols"));
+
 //===------------------------------------------------------------------------===
 //===          INFORMATION OPTIONS
 //===------------------------------------------------------------------------===
@@ -145,6 +156,10 @@
 cl::opt<bool> ShowStats("stats", cl::Optional, cl::init(false),
   cl::desc("Print statistics accumulated during optimization"));
 
+cl::list<std::string> Warnings("W", cl::Prefix,
+  cl::desc("Provide warnings for additional classes of errors"),
+  cl::value_desc("warning category"));
+
 //===------------------------------------------------------------------------===
 //===          ADVANCED OPTIONS
 //===------------------------------------------------------------------------===
@@ -255,6 +270,8 @@
     CD->setFinalPhase(FinalPhase);
     CD->setOptimization(OptLevel);
     CD->setOutputMachine(OutputMachine);
+    CD->setIncludePaths(Includes);
+    CD->setSymbolDefines(Defines);
     CD->setLibraryPaths(LibPaths);
 
     // Provide additional tool arguments






More information about the llvm-commits mailing list