OLD | NEW |
1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// | 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 cl::NotHidden, cl::aliasopt(AllowExternDefinedSymbolsObj)); | 99 cl::NotHidden, cl::aliasopt(AllowExternDefinedSymbolsObj)); |
100 | 100 |
101 std::string AppNameObj; | 101 std::string AppNameObj; |
102 | 102 |
103 } // end of anonymous namespace | 103 } // end of anonymous namespace |
104 | 104 |
105 namespace Ice { | 105 namespace Ice { |
106 | 106 |
107 ClFlags ClFlags::Flags; | 107 ClFlags ClFlags::Flags; |
108 | 108 |
109 void ClFlags::parseFlags(int argc, char **argv) { | 109 void ClFlags::parseFlags(int argc, const char *const *argv) { |
110 cl::ParseCommandLineOptions(argc, argv); | 110 cl::ParseCommandLineOptions(argc, argv); |
111 AppNameObj = argv[0]; | 111 AppNameObj = argv[0]; |
112 } | 112 } |
113 | 113 |
114 namespace { | 114 namespace { |
115 // flagInitOrStorageTypeDefault is some template voodoo for peeling off the | 115 // flagInitOrStorageTypeDefault is some template voodoo for peeling off the |
116 // llvm::cl modifiers from a flag's declaration, until its initial value is | 116 // llvm::cl modifiers from a flag's declaration, until its initial value is |
117 // found. If none is found, then the default value for the storage type is | 117 // found. If none is found, then the default value for the storage type is |
118 // returned. | 118 // returned. |
119 template <typename Ty> Ty flagInitOrStorageTypeDefault() { return Ty(); } | 119 template <typename Ty> Ty flagInitOrStorageTypeDefault() { return Ty(); } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 OutFlags.setDisableHybridAssembly(DisableHybridAssemblyObj || | 194 OutFlags.setDisableHybridAssembly(DisableHybridAssemblyObj || |
195 (OutFileTypeObj != Ice::FT_Iasm)); | 195 (OutFileTypeObj != Ice::FT_Iasm)); |
196 OutFlags.ForceO2.init(OutFlags.getForceO2String()); | 196 OutFlags.ForceO2.init(OutFlags.getForceO2String()); |
197 OutFlags.TestStatus.init(OutFlags.getTestStatusString()); | 197 OutFlags.TestStatus.init(OutFlags.getTestStatusString()); |
198 OutFlags.TimingFocus.init(OutFlags.getTimingFocusOnString()); | 198 OutFlags.TimingFocus.init(OutFlags.getTimingFocusOnString()); |
199 OutFlags.TranslateOnly.init(OutFlags.getTranslateOnlyString()); | 199 OutFlags.TranslateOnly.init(OutFlags.getTranslateOnlyString()); |
200 OutFlags.VerboseFocus.init(OutFlags.getVerboseFocusOnString()); | 200 OutFlags.VerboseFocus.init(OutFlags.getVerboseFocusOnString()); |
201 } | 201 } |
202 | 202 |
203 } // end of namespace Ice | 203 } // end of namespace Ice |
OLD | NEW |