[llvm-commits] [gcc-plugin] r80579 - /gcc-plugin/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Mon Aug 31 01:38:53 PDT 2009
Author: baldrick
Date: Mon Aug 31 03:38:53 2009
New Revision: 80579
URL: http://llvm.org/viewvc/llvm-project?rev=80579&view=rev
Log:
Add an explanation of why we do not initialize the
module here.
Modified:
gcc-plugin/trunk/llvm-backend.cpp
Modified: gcc-plugin/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-backend.cpp?rev=80579&r1=80578&r2=80579&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-backend.cpp (original)
+++ gcc-plugin/trunk/llvm-backend.cpp Mon Aug 31 03:38:53 2009
@@ -1786,6 +1786,8 @@
/// llvm_start_unit - Perform late initialization. This is called by GCC just
/// before processing the compilation unit.
+/// NOTE: called even when only doing syntax checking, so do not initialize the
+/// module etc here.
static void llvm_start_unit(void *gcc_data, void *user_data) {
if (!quiet_flag)
errs() << "Starting compilation unit\n";
More information about the llvm-commits
mailing list