[svn r145] fixed some x86 problems

This commit is contained in:
Tomas Lindquist Olsen
2008-01-23 12:58:51 +01:00
parent 0c0bac2766
commit f9685eab09
4 changed files with 3 additions and 11 deletions

View File

@@ -226,7 +226,7 @@ static llvm::Function* LLVM_DeclareMemIntrinsic(const char* name, int bits, bool
pvec.push_back(bits==32?int32ty:int64ty);
pvec.push_back(int32ty);
llvm::FunctionType* functype = llvm::FunctionType::get(voidty, pvec, false);
return new llvm::Function(functype, llvm::GlobalValue::ExternalLinkage, name, gIR->module);
return llvm::cast<llvm::Function>(gIR->module->getOrInsertFunction(name, functype));
}
//////////////////////////////////////////////////////////////////////////////////////////

View File

@@ -169,9 +169,7 @@
<synchronize>true</synchronize>
<orientation>Vertical</orientation>
</splitheadersource>
<references>
<pcs>LLVM</pcs>
</references>
<references/>
</kdevcppsupport>
<kdevcustomproject>
<run>

View File

@@ -4,8 +4,6 @@ demos
demos/gl.d
demos/glfuncs.d
demos/gltypes.d
demos/lib.d
demos/libtest1.d
demos/qd.d
demos/qd1.d
demos/ray.d
@@ -174,7 +172,6 @@ lphobos/llvm
lphobos/llvm/intrinsic.d
lphobos/llvm/va_list.d
lphobos/llvmsupport.d
lphobos/obj
lphobos/object.d
lphobos/phobos.d
lphobos/std
@@ -196,7 +193,6 @@ lphobos/std/c/stdio.d
lphobos/std/c/stdlib.d
lphobos/std/c/string.d
lphobos/std/c/time.d
lphobos/std/compiler.d
lphobos/std/conv.d
lphobos/std/ctype.d
lphobos/std/format.d
@@ -770,7 +766,6 @@ tangotests/q.d
tangotests/r.d
tangotests/s.d
tangotests/t.d
tangotests/u.d
test
test/a.d
test/aa1.d
@@ -923,7 +918,6 @@ test/funcptr.d
test/funcs.d
test/funcs2.d
test/g.d
test/gc1.d
test/globals1.d
test/globals2.d
test/goto1.d

View File

@@ -473,7 +473,7 @@ unittest
extern (C) int _adCmpChar(Array a1, Array a2)
{
version (X86)
version (D_InlineAsm_X86)
{
asm
{ naked ;