aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-10-16 23:37:27 +0000
committerTed Kremenek <kremenek@apple.com>2007-10-16 23:37:27 +0000
commitbfa82c4c23ce96fdcf357a8f7ef70a9b71b69144 (patch)
treeb9e50af5b4b3f0dfe0b35cd54d570a3cec010927 /Driver/clang.cpp
parent2a35fa9b5e0f9d9429c04adb2e1249b6fd425e7a (diff)
Started work on clang object serialization. Experimental
serialization logic as well as driver code is now in Driver/SerializationTest.cpp. The status of this code is that it should be used by no clients. Added --test-pickling option to driver to run the serialization code. Modified IdentifierInfo and IdentifierTable to have friend classes that permit object serialization. Such friendship may not be needed in the final design. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 6e8dd9e967..082f5ed074 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -60,6 +60,7 @@ enum ProgActions {
WarnDeadStores, // Run DeadStores checker on parsed ASTs.
WarnDeadStoresCheck, // Check diagnostics for "DeadStores".
WarnUninitVals, // Run UnitializedVariables checker.
+ TestSerialization, // Run experimental serialization code.
ParsePrintCallbacks, // Parse and print each callback.
ParseSyntaxOnly, // Parse and perform semantic analysis.
ParseNoop, // Parse with noop callbacks.
@@ -100,6 +101,8 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
"Flag warnings of stores to dead variables."),
clEnumValN(WarnUninitVals, "warn-uninit-values",
"Flag warnings of uses of unitialized variables."),
+ clEnumValN(TestSerialization, "test-pickling",
+ "Run prototype serializtion code."),
clEnumValN(EmitLLVM, "emit-llvm",
"Build ASTs then convert to LLVM, emit .ll file"),
clEnumValN(RewriteTest, "rewrite-test",
@@ -802,6 +805,10 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID,
Consumer = CreateUnitValsChecker(PP.getDiagnostics());
break;
+ case TestSerialization:
+ Consumer = CreateSerializationTest();
+ break;
+
case EmitLLVM:
Consumer = CreateLLVMEmitter(PP.getDiagnostics());
break;