[llvm] r201624 - Use PrivateLinkage now that it is safe.

Rafael Espindola rafael.espindola at gmail.com
Tue Feb 18 17:46:57 PST 2014


Author: rafael
Date: Tue Feb 18 19:46:57 2014
New Revision: 201624

URL: http://llvm.org/viewvc/llvm-project?rev=201624&view=rev
Log:
Use PrivateLinkage now that it is safe.

Now that llvm's codegen knows to use an 'l' prefix when needed, we can just
use PrivateLinkage.

Modified:
    llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp

Modified: llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp?rev=201624&r1=201623&r2=201624&view=diff
==============================================================================
--- llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp (original)
+++ llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp Tue Feb 18 19:46:57 2014
@@ -915,7 +915,7 @@ void generateStringPrint(llvm::LLVMConte
     new llvm::GlobalVariable(module,
                              stringConstant->getType(),
                              true,
-                             llvm::GlobalValue::LinkerPrivateLinkage,
+                             llvm::GlobalValue::PrivateLinkage,
                              stringConstant,
                              "");
   }
@@ -959,7 +959,7 @@ void generateIntegerPrint(llvm::LLVMCont
     new llvm::GlobalVariable(module,
                              stringConstant->getType(),
                              true,
-                             llvm::GlobalValue::LinkerPrivateLinkage,
+                             llvm::GlobalValue::PrivateLinkage,
                              stringConstant,
                              "");
   }





More information about the llvm-commits mailing list