summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Frontend/CompileOptions.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/Frontend/CompileOptions.h b/clang/include/clang/Frontend/CompileOptions.h
index 1b20f0a3ac3..86092708c72 100644
--- a/clang/include/clang/Frontend/CompileOptions.h
+++ b/clang/include/clang/Frontend/CompileOptions.h
@@ -14,11 +14,15 @@
#ifndef LLVM_CLANG_FRONTEND_COMPILEOPTIONS_H
#define LLVM_CLANG_FRONTEND_COMPILEOPTIONS_H
+#include <string>
+#include <vector>
+
namespace clang {
/// CompileOptions - Track various options which control how the code
/// is optimized and passed to the backend.
-struct CompileOptions {
+class CompileOptions {
+public:
unsigned OptimizationLevel : 3; /// The -O[0-4] option specified.
unsigned OptimizeSize : 1; /// If -Os is specified.
unsigned DebugInfo : 1; /// Should generate deubg info (-g).
OpenPOWER on IntegriCloud