[llvm-commits] [llvm-gcc-4.2] r45448 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Gordon Henriksen
gordonhenriksen at mac.com
Sat Dec 29 22:10:21 PST 2007
Author: gordon
Date: Sun Dec 30 00:10:20 2007
New Revision: 45448
URL: http://llvm.org/viewvc/llvm-project?rev=45448&view=rev
Log:
Fix up llvm-gcc translation for GC roots.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=45448&r1=45447&r2=45448&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sun Dec 30 00:10:20 2007
@@ -1392,6 +1392,8 @@
// Emits code to do something for a type attribute
void TreeToLLVM::EmitTypeGcroot(Value *V, tree decl) {
+ // GC intrinsics can only be used in functions which specify a collector.
+ Fn->setCollector("shadow-stack");
Function *gcrootFun = Intrinsic::getDeclaration(TheModule,
Intrinsic::gcroot);
More information about the llvm-commits
mailing list