[llvm-commits] [llvm] r75880 - /llvm/trunk/include/llvm/Target/TargetSelect.h

Daniel Dunbar daniel at zuster.org
Wed Jul 15 18:13:00 PDT 2009


Author: ddunbar
Date: Wed Jul 15 20:13:00 2009
New Revision: 75880

URL: http://llvm.org/viewvc/llvm-project?rev=75880&view=rev
Log:
Add explicit comment that clients can call target initialization functions
multiple times.

Modified:
    llvm/trunk/include/llvm/Target/TargetSelect.h

Modified: llvm/trunk/include/llvm/Target/TargetSelect.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetSelect.h?rev=75880&r1=75879&r2=75880&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetSelect.h (original)
+++ llvm/trunk/include/llvm/Target/TargetSelect.h Wed Jul 15 20:13:00 2009
@@ -36,6 +36,8 @@
   /// wants access to all available targets that LLVM is configured to
   /// support. This allows the client to query the available targets using the
   /// target registration mechanisms.
+  ///
+  /// It is legal for a client to make multiple calls to this function.
   inline void InitializeAllTargets() {
 #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
 #include "llvm/Config/Targets.def"
@@ -47,6 +49,8 @@
   /// InitializeAllAsmPrinters - The main program should call this function if
   /// it wants all asm printers that LLVM is configured to support.  This will
   /// cause them to be linked into its executable.
+  ///
+  /// It is legal for a client to make multiple calls to this function.
   inline void InitializeAllAsmPrinters() {
 #define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter();
 #include "llvm/Config/AsmPrinters.def"
@@ -55,6 +59,8 @@
   /// InitializeNativeTarget - The main program should call this function to
   /// initialize the native target corresponding to the host.  This is useful 
   /// for JIT applications to ensure that the target gets linked in correctly.
+  ///
+  /// It is legal for a client to make multiple calls to this function.
   inline bool InitializeNativeTarget() {
   // If we have a native target, initialize it to ensure it is linked in.
 #ifdef LLVM_NATIVE_ARCH





More information about the llvm-commits mailing list