Home | History | Annotate | Line # | Download | only in profile
InstrProfilingRuntime.cc revision 1.1
      1 //===- InstrProfilingRuntime.cpp - PGO runtime initialization -------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 extern "C" {
     11 
     12 #include "InstrProfiling.h"
     13 
     14 int __llvm_profile_runtime;
     15 
     16 }
     17 
     18 namespace {
     19 
     20 class RegisterAtExit {
     21 public:
     22   RegisterAtExit() { __llvm_profile_register_write_file_atexit(); }
     23 };
     24 
     25 RegisterAtExit Registration;
     26 
     27 }
     28