File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -87,20 +87,7 @@ enum class ThinOrFullLTOPhase {
87
87
};
88
88
89
89
#ifndef NDEBUG
90
- constexpr const char *to_string (ThinOrFullLTOPhase Phase) {
91
- switch (Phase) {
92
- case ThinOrFullLTOPhase::None:
93
- return " None" ;
94
- case ThinOrFullLTOPhase::ThinLTOPreLink:
95
- return " ThinLTOPreLink" ;
96
- case ThinOrFullLTOPhase::ThinLTOPostLink:
97
- return " ThinLTOPostLink" ;
98
- case ThinOrFullLTOPhase::FullLTOPreLink:
99
- return " FullLTOPreLink" ;
100
- case ThinOrFullLTOPhase::FullLTOPostLink:
101
- return " FullLTOPostLink" ;
102
- }
103
- }
90
+ const char *to_string (ThinOrFullLTOPhase Phase);
104
91
#endif
105
92
106
93
// ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change @@ -282,3 +282,21 @@ AnalysisUsage &AnalysisUsage::addRequiredTransitiveID(char &ID) {
282
282
pushUnique (RequiredTransitive, &ID);
283
283
return *this ;
284
284
}
285
+
286
+ #ifndef NDEBUG
287
+ const char *llvm::to_string (ThinOrFullLTOPhase Phase) {
288
+ switch (Phase) {
289
+ case ThinOrFullLTOPhase::None:
290
+ return " None" ;
291
+ case ThinOrFullLTOPhase::ThinLTOPreLink:
292
+ return " ThinLTOPreLink" ;
293
+ case ThinOrFullLTOPhase::ThinLTOPostLink:
294
+ return " ThinLTOPostLink" ;
295
+ case ThinOrFullLTOPhase::FullLTOPreLink:
296
+ return " FullLTOPreLink" ;
297
+ case ThinOrFullLTOPhase::FullLTOPostLink:
298
+ return " FullLTOPostLink" ;
299
+ }
300
+ llvm_unreachable (" invalid phase" );
301
+ }
302
+ #endif
You can’t perform that action at this time.
0 commit comments