MSVC always emits minimal CodeView metadata with compiler information, even when debug info is otherwise disabled. Other tools may rely on this metadata being present. For example, linkers use it to determine whether hotpatching is enabled for the object file.
21 lines
725 B
C++
21 lines
725 B
C++
// REQUIRES: aarch64-registered-target
|
|
///
|
|
/// Check that using /hotpatch doesn't generate an error.
|
|
/// Binaries are always hotpatchable on ARM/ARM64.
|
|
///
|
|
// RUN: %clang_cl --target=aarch64-pc-windows-msvc /c /hotpatch /Z7 -- %s 2>&1
|
|
///
|
|
/// Ensure that we set the hotpatchable flag in the debug information.
|
|
///
|
|
// RUN: %clang_cl --target=aarch64-pc-windows-msvc /c /Z7 -o %t.obj -- %s
|
|
// RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
|
|
// HOTPATCH: S_COMPILE3 [size = [[#]]]
|
|
// HOTPATCH: flags = hot patchable
|
|
//
|
|
// RUN: %clang_cl --target=aarch64-pc-windows-msvc /c -o %t.obj -- %s
|
|
// RUN: llvm-pdbutil dump -symbols %t.obj | FileCheck %s --check-prefix=HOTPATCH
|
|
|
|
int main() {
|
|
return 0;
|
|
}
|