Christian Kamm
64a8e47ad6
Fix several 'reaches end of function' warnings by making fatal noreturn.
...
The warnings also pointed out a few genuine bugs. Replace some tabs with
spaces.
2009-11-06 21:51:41 +01:00
Tomas Lindquist Olsen
0db459fad0
Updated C binding to be more up to date with LLVM.
2009-10-22 13:30:30 +02:00
Tomas Lindquist Olsen
84a319ad23
Fixed issue in exception runtime with recent LLVM revisions, with this in place EH seems to work properly on x86-64. These fixes need to be merged into tango trunk still!
2009-10-21 05:46:56 +02:00
Moritz Warning
4d9df2012d
basename => dirname, thanks Hxal
2009-09-22 20:26:50 +02:00
Robert Clipsham
70b2156010
Fixed a segfault in ldc2 when compiling synchronized{} blocks.
2009-09-19 13:05:10 +01:00
Robert Clipsham
d6a6b7c797
Fixed ticket #365 . Thanks wilkie.
2009-09-19 00:44:35 +01:00
Moritz Warning
b7c0c9e25e
allow forward referencing, fix #361
2009-09-09 20:13:17 +02:00
Moritz Warning
4d507f0179
fix newline warning
2009-09-09 02:03:24 +02:00
Robert Clipsham
e44a9aa260
Removed a chunk of code in favour of a shorter and more portable method
2009-09-08 11:21:30 +01:00
Robert Clipsham
089e792258
DMD 2.032 Merge.
2009-09-08 10:07:56 +01:00
Benjamin Kramer
8b6f11938a
Kill off StripMetaData.
2009-08-25 21:35:43 +02:00
Benjamin Kramer
a54bf33d4b
This flush is not needed anymore.
2009-08-25 21:21:37 +02:00
Benjamin Kramer
832f9a9c64
Fix bug #356 . Our sorting function was wrong if a value was between two NULL pointers.
2009-08-22 11:45:20 +02:00
Kelly Wilson
5d0cdd6157
Fixed iretq problem reported by wilkie of the XomB project
2009-08-17 13:42:19 -06:00
Benjamin Kramer
d24643bb50
Avoid some unecessary heap allocations by using llvm's StringRef class.
2009-08-14 01:43:30 +02:00
Benjamin Kramer
c220dcac05
IntegerType is now contextifed.
...
Requires llvm >= 78969. resistor says this will be the last context API change :)
2009-08-14 00:39:18 +02:00
Benjamin Kramer
f3aad137c5
Remove dummy module hack.
2009-08-06 16:02:14 +02:00
Benjamin Kramer
977fa551ee
Push the context through StructType::get.
...
Requires LLVM >= 78258. Also remove old #if's.
2009-08-06 01:47:39 +02:00
Tomas Lindquist Olsen
de0d74dc68
Forgot to add files.
2009-08-06 17:04:36 +02:00
Tomas Lindquist Olsen
84f820b442
Added framework for writing a static printf call checker for bearophile to implement.
2009-08-06 16:52:43 +02:00
Benjamin Kramer
e05d3d8c3a
lookupTarget no longer takes a Module.
...
And we need to get TargetData from the module if the Target
doesn't have it.
2009-08-04 12:21:59 +02:00
Benjamin Kramer
5b84e64f6c
Build fix for TargetMachine changes.
...
#if'ed for now.
2009-08-03 11:29:35 +02:00
Tomas Lindquist Olsen
d52ea51df4
Added check and error in case two same named modules - with different packages and compiled at once - would overwrite each other's output files.
2009-08-02 18:37:07 +02:00
Tomas Lindquist Olsen
df82d09206
Fixed bug #349 , now emits error.
2009-08-02 17:56:30 +02:00
Tomas Lindquist Olsen
c69e5a5c83
Fixed compiling with llvm rev > 77732
2009-08-01 18:23:52 +02:00
Benjamin Kramer
a75873da1c
MDNode left the Context!
...
The changes are in #if LLVM_REV >= 77733 to make the dstress bot happy.
2009-07-31 23:53:06 +02:00
Benjamin Kramer
4c5457ba61
getNullValue is in Constant again
...
Requires LLVM >= r77721
2009-07-31 23:01:29 +02:00
Benjamin Kramer
0a1d467ac7
getTrue/getFalse were moved back to ConstantInt
...
Requires LLVM >= r77685
2009-07-31 19:11:07 +02:00
Tomas Lindquist Olsen
d5d3ecdb05
Added back option to disable metadata generation and users. Set USE_METADATA to OFF in ccmake.
2009-07-31 11:28:31 +02:00
Tomas Lindquist Olsen
b7b671ce48
Disable metadata for typeid(void).
2009-07-31 01:44:47 +02:00
Benjamin Kramer
652a4b39c0
ConstantAggregateZero moved back to LLVM 2.5-style API
...
Requires LLVM >= 77635
2009-07-31 01:16:30 +02:00
Benjamin Kramer
e34f07505b
use the new NamedMDNode class
...
this will need a LLVM >= r77619
2009-07-30 20:54:03 +02:00
Benjamin Kramer
66101517d7
LLVMContext changes up to r77366
2009-07-30 15:25:10 +02:00
Benjamin Kramer
3f0a0686a8
Value::getNameStart and Value::getNameLength were removed
2009-07-23 20:34:35 +02:00
Benjamin Kramer
a31f3eb98f
getClosestStaticTargetForModule was replaced with lookupTarget
...
Build fix for LLVM r77111.
2009-07-28 15:26:21 +02:00
Benjamin Kramer
27a9f93767
DOUT is deprecated, use DEBUG(errs()) instead
2009-07-27 11:44:01 +02:00
Tomas Lindquist Olsen
3cf7b6a95c
Fixed potential crash with complex recursive struct types.
2009-07-26 19:12:37 +02:00
Christian Kamm
987618fcd1
Always emit a stop point for return statements - even for void returns.
2009-07-26 18:32:25 +02:00
Benjamin Kramer
a398cd39b3
ConstantInt::get{True,False} moved to LLVMContext
...
Non-breaking build fix for LLVM r76533. Also fixes a context related
bug in GarbageCollect2Stack.
2009-07-21 13:11:39 +02:00
Benjamin Kramer
51c02d192a
Some minor cleanups
...
* remove an #ifdef USE_METADATA I accidently left in
* remove now unneeded llvm-version includes
* fix indentation in metadata.h
* prevent the "Found native target" message from interrupting ccmake
2009-07-20 18:16:11 +02:00
Benjamin Kramer
69171c07cd
Temporarily force our LLVMContext to the global context
...
From llvm r75846:
"To simplify the upcoming context-on-type change, switch all command
line tools to using the default global context for now."
2009-07-20 17:55:05 +02:00
Benjamin Kramer
d7049de966
More factory methods moved to LLVMContext
2009-07-15 18:09:41 +02:00
Benjamin Kramer
ac5bd294ca
We need to parse mArch ourselves now
...
Build fix for LLVM r75890
2009-07-17 19:23:20 +02:00
Benjamin Kramer
7359448063
Use TargetRegistry instead of TargetMachineRegistry for Target lookups
...
This fixes the build for LLVM >= r75774 and will probably break older
LLVM revs.
2009-07-15 23:01:51 +02:00
Benjamin Kramer
03020aea39
raw_fd_ostream takes a force parameter now
...
Build fix for LLVM 75801.
2009-07-15 20:04:42 +02:00
Benjamin Kramer
23b83c4d7b
Target.addPassesToEmitFile takes a formatted_raw_ostream now
...
Build fix for LLVM r75670
2009-07-14 23:06:31 +02:00
Robert Clipsham
02e7bb26fc
Fixed Op_Shift asm instructions on x86-64.
2009-07-19 23:52:07 +01:00
Benjamin Kramer
076ef17159
Build fix for LLVM r75546 and r75559
2009-07-14 02:19:05 +02:00
Christian Kamm
0075194b90
Improve error message when using auto declarations with explicit type.
2009-07-14 18:24:40 +02:00
Christian Kamm
eb3cd8872e
Change back the ldc.conf search path and add ~/.ldc
...
New one:
cwd, ~/.ldc, prefix/etc, prefix/etc/ldc, /etc, /etc/ldc, next-to-binary
2009-07-13 22:56:59 +02:00