Port the two Process::PrintWarning functions to use the new diagnostic events through Debugger::ReportWarning. I kept the wrapper function in the process, but delegated the work to the Module. Consistent with the current code, the Module ensures the warning is only printed once per module. Differential revision: https://reviews.llvm.org/D123698
7 lines
204 B
Plaintext
7 lines
204 B
Plaintext
Test warnings.
|
|
REQUIRES: shell, system-darwin
|
|
RUN: %clang_host -O3 %S/Inputs/true.c -std=c99 -g -o %t.exe
|
|
RUN: %lldb -o "b main" -o r -o q -b %t.exe 2>&1 | FileCheck %s
|
|
|
|
CHECK: compiled with optimization
|