Instead of letting a program fail at runtime, emit an error during
compilation.
rdar://problem/12206955
Paths 
  |  Differential  D57991  
[Driver][Darwin] Emit an error when using -pg on OS without support for it. ClosedPublic Authored by vsapsai on Feb 8 2019, 5:56 PM. 
Details 
 Summary Instead of letting a program fail at runtime, emit an error during rdar://problem/12206955 
Diff Detail 
 Event TimelineComment Actions LGTM with a suggestion to make code cleaner. 
 This revision is now accepted and ready to land.Feb 11 2019, 11:02 AM Closed by commit rL354084: [Driver][Darwin] Emit an error when using -pg on OS without support for it. (authored by vsapsai).  ·  Explain WhyFeb 14 2019, 3:54 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 186935 cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td
 cfe/trunk/lib/Driver/ToolChains/Darwin.cpp
 cfe/trunk/test/Driver/darwin-ld.c
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||