llvm-project/clang/tools/clang-cc
Daniel Dunbar 3b358a3d83 Make debug info work when using -save-temps.
- This is pretty ugly, but the most obvious solution. Chime in if you
   have a nicer one.

 - The problem is that with -save-temps, clang-cc has no idea what the
   name of the original input file is. However, the user expects to be
   able to set breakpoints based on the input file name.

 - We support this by providing a new option -main-file-name (similar
   to -dumpbase used by gcc) which allows the driver to pass in the
   original file name.

 - <rdar://problem/6753383> building with clang using --save-temps
   gets the compile unit name from the .i file...

llvm-svn: 68595
2009-04-08 05:11:16 +00:00
..
ASTConsumers.cpp Apply a patch which adds 'OriginalParmVar' to the DeclContextPrinter by Jon 2009-04-05 02:04:38 +00:00
ASTConsumers.h Move <root>/Driver into <root>/tools/clang-cc. 2009-03-24 03:00:12 +00:00
Analyses.def Move <root>/Driver into <root>/tools/clang-cc. 2009-03-24 03:00:12 +00:00
AnalysisConsumer.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
Backend.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
CMakeLists.txt Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
CacheTokens.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
DependencyFile.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
DiagChecker.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
HTMLPrint.cpp Move <root>/Driver into <root>/tools/clang-cc. 2009-03-24 03:00:12 +00:00
Makefile Install clang-cc to libexec/clang-cc (instead of bin/clang-cc). 2009-03-24 04:07:10 +00:00
PrintParserCallbacks.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
PrintPreprocessedOutput.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
RewriteBlocks.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
RewriteMacros.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
RewriteObjC.cpp Push DeclGroup much farther throughout the compiler. Now the various 2009-03-29 16:50:03 +00:00
RewriteTest.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
SerializationTest.cpp Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00
Warnings.cpp Implement -Wmissing-prototypes. Fixes PR3911. 2009-03-31 16:35:03 +00:00
clang-cc.cpp Make debug info work when using -save-temps. 2009-04-08 05:11:16 +00:00
clang-cc.h Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of the 2009-03-31 18:58:14 +00:00