[libc-commits] [libc] d94af36 - [libc] Surround get_start_args_addr in __llvm_libc namespace.
    Paula Toth via libc-commits 
    libc-commits at lists.llvm.org
       
    Thu Apr 23 15:15:13 PDT 2020
    
    
  
Author: Paula Toth
Date: 2020-04-23T15:15:00-07:00
New Revision: d94af364acfa252ef980bc18a53fdf01dceea201
URL: https://github.com/llvm/llvm-project/commit/d94af364acfa252ef980bc18a53fdf01dceea201
DIFF: https://github.com/llvm/llvm-project/commit/d94af364acfa252ef980bc18a53fdf01dceea201.diff
LOG: [libc] Surround get_start_args_addr in __llvm_libc namespace.
Summary: Caught by libc-tidy from patch D77281.
Reviewers: sivachandra
Reviewed By: sivachandra
Subscribers: tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D78700
Added: 
    
Modified: 
    libc/src/threads/linux/x86_64/thread_start_args.h.in
Removed: 
    
################################################################################
diff  --git a/libc/src/threads/linux/x86_64/thread_start_args.h.in b/libc/src/threads/linux/x86_64/thread_start_args.h.in
index deb0b3bdece3..36365b98bb21 100644
--- a/libc/src/threads/linux/x86_64/thread_start_args.h.in
+++ b/libc/src/threads/linux/x86_64/thread_start_args.h.in
@@ -8,6 +8,8 @@
 
 %%begin()
 
+namespace __llvm_libc {
+
 __attribute__((always_inline)) inline uintptr_t get_start_args_addr() {
   // NOTE: For __builtin_frame_address to work reliably across compilers,
   // architectures and various optimization levels, the TU including this file
@@ -19,3 +21,4 @@ __attribute__((always_inline)) inline uintptr_t get_start_args_addr() {
          sizeof(uintptr_t) * 2;
 }
 
+} // namespace __llvm_libc
        
    
    
More information about the libc-commits
mailing list