Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 1 | //===-- cc1_main.cpp - Clang CC1 Driver -----------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 10 | // This is the entry point to the clang -cc1 functionality, which implements the |
| 11 | // core compiler functionality along with a number of additional tools for |
| 12 | // demonstration and testing purposes. |
Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 16 | #include "clang/Basic/Diagnostic.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 17 | #include "clang/Driver/Arg.h" |
| 18 | #include "clang/Driver/ArgList.h" |
| 19 | #include "clang/Driver/CC1Options.h" |
| 20 | #include "clang/Driver/DriverDiagnostic.h" |
| 21 | #include "clang/Driver/OptTable.h" |
Daniel Dunbar | 4ee3461 | 2010-02-25 04:37:45 +0000 | [diff] [blame] | 22 | #include "clang/Frontend/CodeGenAction.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 23 | #include "clang/Frontend/CompilerInstance.h" |
| 24 | #include "clang/Frontend/CompilerInvocation.h" |
| 25 | #include "clang/Frontend/FrontendActions.h" |
| 26 | #include "clang/Frontend/FrontendDiagnostic.h" |
| 27 | #include "clang/Frontend/FrontendPluginRegistry.h" |
| 28 | #include "clang/Frontend/TextDiagnosticBuffer.h" |
| 29 | #include "clang/Frontend/TextDiagnosticPrinter.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 30 | #include "llvm/LLVMContext.h" |
| 31 | #include "llvm/ADT/OwningPtr.h" |
Douglas Gregor | 95dd558 | 2010-03-30 17:33:59 +0000 | [diff] [blame] | 32 | #include "llvm/ADT/Statistic.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 33 | #include "llvm/Support/ErrorHandling.h" |
| 34 | #include "llvm/Support/ManagedStatic.h" |
Chris Lattner | 30bc7e8 | 2010-03-30 05:39:52 +0000 | [diff] [blame] | 35 | #include "llvm/Support/Timer.h" |
Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 36 | #include "llvm/Support/raw_ostream.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 37 | #include "llvm/System/DynamicLibrary.h" |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 38 | #include "llvm/Target/TargetSelect.h" |
| 39 | #include <cstdio> |
| 40 | using namespace clang; |
Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 41 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 42 | //===----------------------------------------------------------------------===// |
| 43 | // Main driver |
| 44 | //===----------------------------------------------------------------------===// |
| 45 | |
| 46 | void LLVMErrorHandler(void *UserData, const std::string &Message) { |
| 47 | Diagnostic &Diags = *static_cast<Diagnostic*>(UserData); |
| 48 | |
| 49 | Diags.Report(diag::err_fe_error_backend) << Message; |
| 50 | |
| 51 | // We cannot recover from llvm errors. |
| 52 | exit(1); |
| 53 | } |
| 54 | |
Douglas Gregor | 9bed879 | 2010-02-09 19:21:46 +0000 | [diff] [blame] | 55 | static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 56 | using namespace clang::frontend; |
| 57 | |
| 58 | switch (CI.getFrontendOpts().ProgramAction) { |
| 59 | default: |
Jeffrey Yasskin | 9f61aa9 | 2009-12-12 05:05:38 +0000 | [diff] [blame] | 60 | llvm_unreachable("Invalid program action!"); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 61 | |
| 62 | case ASTDump: return new ASTDumpAction(); |
| 63 | case ASTPrint: return new ASTPrintAction(); |
| 64 | case ASTPrintXML: return new ASTPrintXMLAction(); |
| 65 | case ASTView: return new ASTViewAction(); |
| 66 | case DumpRawTokens: return new DumpRawTokensAction(); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 67 | case DumpTokens: return new DumpTokensAction(); |
| 68 | case EmitAssembly: return new EmitAssemblyAction(); |
| 69 | case EmitBC: return new EmitBCAction(); |
| 70 | case EmitHTML: return new HTMLPrintAction(); |
| 71 | case EmitLLVM: return new EmitLLVMAction(); |
| 72 | case EmitLLVMOnly: return new EmitLLVMOnlyAction(); |
Daniel Dunbar | da1573f | 2010-02-03 01:18:43 +0000 | [diff] [blame] | 73 | case EmitObj: return new EmitObjAction(); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 74 | case FixIt: return new FixItAction(); |
| 75 | case GeneratePCH: return new GeneratePCHAction(); |
| 76 | case GeneratePTH: return new GeneratePTHAction(); |
| 77 | case InheritanceView: return new InheritanceViewAction(); |
Daniel Dunbar | 2758595 | 2010-03-19 19:44:04 +0000 | [diff] [blame] | 78 | case InitOnly: return new InitOnlyAction(); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 79 | case ParseNoop: return new ParseOnlyAction(); |
| 80 | case ParsePrintCallbacks: return new PrintParseAction(); |
| 81 | case ParseSyntaxOnly: return new SyntaxOnlyAction(); |
| 82 | |
| 83 | case PluginAction: { |
| 84 | if (CI.getFrontendOpts().ActionName == "help") { |
| 85 | llvm::errs() << "clang -cc1 plugins:\n"; |
| 86 | for (FrontendPluginRegistry::iterator it = |
| 87 | FrontendPluginRegistry::begin(), |
| 88 | ie = FrontendPluginRegistry::end(); |
| 89 | it != ie; ++it) |
| 90 | llvm::errs() << " " << it->getName() << " - " << it->getDesc() << "\n"; |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | for (FrontendPluginRegistry::iterator it = |
| 95 | FrontendPluginRegistry::begin(), ie = FrontendPluginRegistry::end(); |
| 96 | it != ie; ++it) { |
| 97 | if (it->getName() == CI.getFrontendOpts().ActionName) |
| 98 | return it->instantiate(); |
| 99 | } |
| 100 | |
| 101 | CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name) |
| 102 | << CI.getFrontendOpts().ActionName; |
| 103 | return 0; |
| 104 | } |
| 105 | |
| 106 | case PrintDeclContext: return new DeclContextPrintAction(); |
| 107 | case PrintPreprocessedInput: return new PrintPreprocessedAction(); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 108 | case RewriteMacros: return new RewriteMacrosAction(); |
| 109 | case RewriteObjC: return new RewriteObjCAction(); |
| 110 | case RewriteTest: return new RewriteTestAction(); |
| 111 | case RunAnalysis: return new AnalysisAction(); |
| 112 | case RunPreprocessorOnly: return new PreprocessOnlyAction(); |
| 113 | } |
| 114 | } |
| 115 | |
Douglas Gregor | 9bed879 | 2010-02-09 19:21:46 +0000 | [diff] [blame] | 116 | static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { |
| 117 | // Create the underlying action. |
| 118 | FrontendAction *Act = CreateFrontendBaseAction(CI); |
| 119 | if (!Act) |
| 120 | return 0; |
| 121 | |
| 122 | // If there are any AST files to merge, create a frontend action |
| 123 | // adaptor to perform the merge. |
| 124 | if (!CI.getFrontendOpts().ASTMergeFiles.empty()) |
| 125 | Act = new ASTMergeAction(Act, &CI.getFrontendOpts().ASTMergeFiles[0], |
| 126 | CI.getFrontendOpts().ASTMergeFiles.size()); |
| 127 | |
| 128 | return Act; |
| 129 | } |
| 130 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 131 | // FIXME: Define the need for this testing away. |
| 132 | static int cc1_test(Diagnostic &Diags, |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 133 | const char **ArgBegin, const char **ArgEnd) { |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 134 | using namespace clang::driver; |
| 135 | |
Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 136 | llvm::errs() << "cc1 argv:"; |
| 137 | for (const char **i = ArgBegin; i != ArgEnd; ++i) |
| 138 | llvm::errs() << " \"" << *i << '"'; |
| 139 | llvm::errs() << "\n"; |
| 140 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 141 | // Parse the arguments. |
| 142 | OptTable *Opts = createCC1OptTable(); |
| 143 | unsigned MissingArgIndex, MissingArgCount; |
| 144 | InputArgList *Args = Opts->ParseArgs(ArgBegin, ArgEnd, |
| 145 | MissingArgIndex, MissingArgCount); |
| 146 | |
| 147 | // Check for missing argument error. |
| 148 | if (MissingArgCount) |
| 149 | Diags.Report(clang::diag::err_drv_missing_argument) |
| 150 | << Args->getArgString(MissingArgIndex) << MissingArgCount; |
| 151 | |
| 152 | // Dump the parsed arguments. |
| 153 | llvm::errs() << "cc1 parsed options:\n"; |
| 154 | for (ArgList::const_iterator it = Args->begin(), ie = Args->end(); |
| 155 | it != ie; ++it) |
| 156 | (*it)->dump(); |
| 157 | |
| 158 | // Create a compiler invocation. |
| 159 | llvm::errs() << "cc1 creating invocation.\n"; |
| 160 | CompilerInvocation Invocation; |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 161 | CompilerInvocation::CreateFromArgs(Invocation, ArgBegin, ArgEnd, Diags); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 162 | |
| 163 | // Convert the invocation back to argument strings. |
| 164 | std::vector<std::string> InvocationArgs; |
| 165 | Invocation.toArgs(InvocationArgs); |
| 166 | |
| 167 | // Dump the converted arguments. |
| 168 | llvm::SmallVector<const char*, 32> Invocation2Args; |
| 169 | llvm::errs() << "invocation argv :"; |
| 170 | for (unsigned i = 0, e = InvocationArgs.size(); i != e; ++i) { |
| 171 | Invocation2Args.push_back(InvocationArgs[i].c_str()); |
| 172 | llvm::errs() << " \"" << InvocationArgs[i] << '"'; |
| 173 | } |
| 174 | llvm::errs() << "\n"; |
| 175 | |
| 176 | // Convert those arguments to another invocation, and check that we got the |
| 177 | // same thing. |
| 178 | CompilerInvocation Invocation2; |
| 179 | CompilerInvocation::CreateFromArgs(Invocation2, Invocation2Args.begin(), |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 180 | Invocation2Args.end(), Diags); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 181 | |
| 182 | // FIXME: Implement CompilerInvocation comparison. |
| 183 | if (true) { |
| 184 | //llvm::errs() << "warning: Invocations differ!\n"; |
| 185 | |
| 186 | std::vector<std::string> Invocation2Args; |
| 187 | Invocation2.toArgs(Invocation2Args); |
| 188 | llvm::errs() << "invocation2 argv:"; |
| 189 | for (unsigned i = 0, e = Invocation2Args.size(); i != e; ++i) |
| 190 | llvm::errs() << " \"" << Invocation2Args[i] << '"'; |
| 191 | llvm::errs() << "\n"; |
| 192 | } |
| 193 | |
Daniel Dunbar | 217acbf | 2009-11-19 07:37:51 +0000 | [diff] [blame] | 194 | return 0; |
| 195 | } |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 196 | |
| 197 | int cc1_main(const char **ArgBegin, const char **ArgEnd, |
| 198 | const char *Argv0, void *MainAddr) { |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 199 | llvm::OwningPtr<CompilerInstance> Clang(new CompilerInstance()); |
Daniel Dunbar | 42e9f8e4 | 2010-02-16 01:54:47 +0000 | [diff] [blame] | 200 | |
Chris Lattner | cabae68 | 2010-04-06 17:52:14 +0000 | [diff] [blame] | 201 | Clang->setLLVMContext(new llvm::LLVMContext()); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 202 | |
| 203 | // Run clang -cc1 test. |
| 204 | if (ArgBegin != ArgEnd && llvm::StringRef(ArgBegin[0]) == "-cc1test") { |
| 205 | TextDiagnosticPrinter DiagClient(llvm::errs(), DiagnosticOptions()); |
| 206 | Diagnostic Diags(&DiagClient); |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 207 | return cc1_test(Diags, ArgBegin + 1, ArgEnd); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 208 | } |
| 209 | |
| 210 | // Initialize targets first, so that --version shows registered targets. |
| 211 | llvm::InitializeAllTargets(); |
| 212 | llvm::InitializeAllAsmPrinters(); |
Chris Lattner | 01ae93f | 2010-04-05 23:33:20 +0000 | [diff] [blame] | 213 | llvm::InitializeAllAsmParsers(); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 214 | |
| 215 | // Buffer diagnostics from argument parsing so that we can output them using a |
| 216 | // well formed diagnostic object. |
| 217 | TextDiagnosticBuffer DiagsBuffer; |
| 218 | Diagnostic Diags(&DiagsBuffer); |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 219 | CompilerInvocation::CreateFromArgs(Clang->getInvocation(), ArgBegin, ArgEnd, |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 220 | Diags); |
| 221 | |
| 222 | // Infer the builtin include path if unspecified. |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 223 | if (Clang->getHeaderSearchOpts().UseBuiltinIncludes && |
| 224 | Clang->getHeaderSearchOpts().ResourceDir.empty()) |
| 225 | Clang->getHeaderSearchOpts().ResourceDir = |
Daniel Dunbar | 8b9adfe | 2009-12-15 00:06:45 +0000 | [diff] [blame] | 226 | CompilerInvocation::GetResourcesPath(Argv0, MainAddr); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 227 | |
| 228 | // Honor -help. |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 229 | if (Clang->getFrontendOpts().ShowHelp) { |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 230 | llvm::OwningPtr<driver::OptTable> Opts(driver::createCC1OptTable()); |
| 231 | Opts->PrintHelp(llvm::outs(), "clang -cc1", |
| 232 | "LLVM 'Clang' Compiler: http://clang.llvm.org"); |
| 233 | return 0; |
| 234 | } |
| 235 | |
| 236 | // Honor -version. |
| 237 | // |
| 238 | // FIXME: Use a better -version message? |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 239 | if (Clang->getFrontendOpts().ShowVersion) { |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 240 | llvm::cl::PrintVersionMessage(); |
| 241 | return 0; |
| 242 | } |
| 243 | |
Daniel Dunbar | 3f87fb0 | 2010-04-15 06:09:03 +0000 | [diff] [blame] | 244 | // Honor -mllvm. |
| 245 | // |
| 246 | // FIXME: Remove this, one day. |
| 247 | if (!Clang->getFrontendOpts().LLVMArgs.empty()) { |
| 248 | unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size(); |
| 249 | const char **Args = new const char*[NumArgs + 2]; |
| 250 | Args[0] = "clang (LLVM option parsing)"; |
| 251 | for (unsigned i = 0; i != NumArgs; ++i) |
| 252 | Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str(); |
| 253 | Args[NumArgs + 1] = 0; |
| 254 | llvm::cl::ParseCommandLineOptions(NumArgs + 1, (char**) Args); |
| 255 | } |
| 256 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 257 | // Create the actual diagnostics engine. |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 258 | Clang->createDiagnostics(ArgEnd - ArgBegin, const_cast<char**>(ArgBegin)); |
| 259 | if (!Clang->hasDiagnostics()) |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 260 | return 1; |
Daniel Dunbar | 1e69fe3 | 2009-12-13 03:45:58 +0000 | [diff] [blame] | 261 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 262 | // Set an error handler, so that any LLVM backend diagnostics go through our |
| 263 | // error handler. |
Chris Lattner | 1e3c6f4 | 2010-04-07 23:12:35 +0000 | [diff] [blame] | 264 | llvm::install_fatal_error_handler(LLVMErrorHandler, |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 265 | static_cast<void*>(&Clang->getDiagnostics())); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 266 | |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 267 | DiagsBuffer.FlushDiagnostics(Clang->getDiagnostics()); |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 268 | |
| 269 | // Load any requested plugins. |
| 270 | for (unsigned i = 0, |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 271 | e = Clang->getFrontendOpts().Plugins.size(); i != e; ++i) { |
| 272 | const std::string &Path = Clang->getFrontendOpts().Plugins[i]; |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 273 | std::string Error; |
| 274 | if (llvm::sys::DynamicLibrary::LoadLibraryPermanently(Path.c_str(), &Error)) |
| 275 | Diags.Report(diag::err_fe_unable_to_load_plugin) << Path << Error; |
| 276 | } |
| 277 | |
Daniel Dunbar | 0397af2 | 2010-01-13 00:48:06 +0000 | [diff] [blame] | 278 | // If there were errors in processing arguments, don't do anything else. |
| 279 | bool Success = false; |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 280 | if (!Clang->getDiagnostics().getNumErrors()) { |
Daniel Dunbar | 0397af2 | 2010-01-13 00:48:06 +0000 | [diff] [blame] | 281 | // Create and execute the frontend action. |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 282 | llvm::OwningPtr<FrontendAction> Act(CreateFrontendAction(*Clang)); |
| 283 | if (Act) { |
| 284 | Success = Clang->ExecuteAction(*Act); |
| 285 | if (Clang->getFrontendOpts().DisableFree) |
| 286 | Act.take(); |
| 287 | } |
| 288 | } |
| 289 | |
Chris Lattner | 30bc7e8 | 2010-03-30 05:39:52 +0000 | [diff] [blame] | 290 | // If any timers were active but haven't been destroyed yet, print their |
| 291 | // results now. This happens in -disable-free mode. |
| 292 | llvm::TimerGroup::printAll(llvm::errs()); |
| 293 | |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 294 | // When running with -disable-free, don't do any destruction or shutdown. |
| 295 | if (Clang->getFrontendOpts().DisableFree) { |
Douglas Gregor | 95dd558 | 2010-03-30 17:33:59 +0000 | [diff] [blame] | 296 | if (Clang->getFrontendOpts().ShowStats) |
| 297 | llvm::PrintStatistics(); |
Daniel Dunbar | 42444fb | 2010-03-23 05:09:16 +0000 | [diff] [blame] | 298 | Clang.take(); |
| 299 | return !Success; |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 300 | } |
| 301 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 302 | // Managed static deconstruction. Useful for making things like |
| 303 | // -time-passes usable. |
| 304 | llvm::llvm_shutdown(); |
| 305 | |
Daniel Dunbar | 0397af2 | 2010-01-13 00:48:06 +0000 | [diff] [blame] | 306 | return !Success; |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 307 | } |