[llvm-commits] [llvm] r85910 - /llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Chris Lattner
sabre at nondot.org
Tue Nov 3 10:30:31 PST 2009
Author: lattner
Date: Tue Nov 3 12:30:31 2009
New Revision: 85910
URL: http://llvm.org/viewvc/llvm-project?rev=85910&view=rev
Log:
mark some constant global const.
Modified:
llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=85910&r1=85909&r2=85910&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Tue Nov 3 12:30:31 2009
@@ -28,7 +28,6 @@
using namespace llvm;
-namespace {
//===----------------------------------------------------------------------===//
/// Typedefs
@@ -40,16 +39,18 @@
/// Constants
// Indentation.
-unsigned TabWidth = 4;
-unsigned Indent1 = TabWidth*1;
-unsigned Indent2 = TabWidth*2;
-unsigned Indent3 = TabWidth*3;
+static const unsigned TabWidth = 4;
+static const unsigned Indent1 = TabWidth*1;
+static const unsigned Indent2 = TabWidth*2;
+static const unsigned Indent3 = TabWidth*3;
// Default help string.
-const char * DefaultHelpString = "NO HELP MESSAGE PROVIDED";
+static const char * const DefaultHelpString = "NO HELP MESSAGE PROVIDED";
// Name for the "sink" option.
-const char * SinkOptionName = "AutoGeneratedSinkOption";
+static const char * const SinkOptionName = "AutoGeneratedSinkOption";
+
+namespace {
//===----------------------------------------------------------------------===//
/// Helper functions
More information about the llvm-commits
mailing list