diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-12-16 00:34:30 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-12-16 00:34:30 +0000 |
commit | 702a7739881f016f984d63677c10fba9823b8dba (patch) | |
tree | 83b6744dab1835cfba41c8db2791ba3e7c3db57b /compiler-rt/lib/cfi/cfi.cc | |
parent | 2ad650ea4f1ae333dfe7fadb71e44ea1010b7d91 (diff) | |
download | bcm5719-llvm-702a7739881f016f984d63677c10fba9823b8dba.tar.gz bcm5719-llvm-702a7739881f016f984d63677c10fba9823b8dba.zip |
[cfi] Fix GCC build.
llvm-svn: 255733
Diffstat (limited to 'compiler-rt/lib/cfi/cfi.cc')
-rw-r--r-- | compiler-rt/lib/cfi/cfi.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/cfi/cfi.cc b/compiler-rt/lib/cfi/cfi.cc index 3191b568313..11a61fd43ac 100644 --- a/compiler-rt/lib/cfi/cfi.cc +++ b/compiler-rt/lib/cfi/cfi.cc @@ -188,7 +188,7 @@ static void init_shadow() { dl_iterate_phdr(dl_iterate_phdr_cb, nullptr); } -SANITIZER_INTERFACE_ATTRIBUTE extern "C" +extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __cfi_slowpath(uptr CallSiteTypeId, void *Ptr) { uptr Addr = (uptr)Ptr; VReport(3, "__cfi_slowpath: %zx, %p\n", CallSiteTypeId, Ptr); @@ -233,7 +233,7 @@ static void InitializeFlags() { } } -extern "C" __attribute__((visibility("default"))) +extern "C" SANITIZER_INTERFACE_ATTRIBUTE #if !SANITIZER_CAN_USE_PREINIT_ARRAY // On ELF platforms, the constructor is invoked using .preinit_array (see below) __attribute__((constructor(0))) |