diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-04 21:19:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-04 21:19:06 +0000 |
commit | d604c40e933c445ff33ac83d62cc6b1adcf7014c (patch) | |
tree | 22d5401327786d4c221e2e0ea484cc44c7375e49 /include/clang/Basic/LangOptions.h | |
parent | 4b5f0a4bd6645e87e5feae4be4675ce87d97b4a5 (diff) |
Add -femit-all-decls codegen option.
- Emits all declarations, even unused (static) ones.
- Useful when doing minimization of codegen problems (otherwise
problems localized to a static function aren't minimized well).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index b615412f20..b85a74bc4a 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -51,6 +51,8 @@ struct LangOptions { unsigned ThreadsafeStatics : 1; // Whether static initializers are protected // by locks. unsigned Blocks : 1; // block extension to C + unsigned EmitAllDecls : 1; // Emit all declarations, even if + // they are unused. private: unsigned GC : 2; // Objective-C Garbage Collection modes. We declare // this enum as unsigned because MSVC insists on making enums @@ -72,6 +74,7 @@ public: // FIXME: The default should be 1. ThreadsafeStatics = 0; Blocks = 0; + EmitAllDecls = 0; } GCMode getGCMode() const { return (GCMode) GC; } |