Jan Vesely
2b30f0ee73
Revert "Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC"
...
This reverts commit 58c814614d2ac69bcf79b09543505fac80ada4e6.
Fixes build breakage using LLVM<7.
llvm-svn: 367893
2019-08-05 17:23:23 +00:00
Fangrui Song
d9b948b6eb
Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC
...
F_{None,Text,Append} are kept for compatibility since r334221.
llvm-svn: 367800
2019-08-05 05:43:48 +00:00
Jan Vesely
86db4302e0
utils: Adapt to llvm r325155
...
r325155 ("Pass a reference to a module to the bitcode writer.")
changed bit writer interface from pointer to reference
Reviewer: Aaron Watry <awatry@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 325867
2018-02-23 07:37:03 +00:00
Jan Vesely
ce29e8cde1
Restore support for llvm-3.9
...
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Acked-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 314543
2017-09-29 19:06:41 +00:00
Jan Vesely
760052047b
prepare_builtins: Fix compile breakage with older LLVM
...
Fixes r314050
reviewer: Tom Stellard
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 314111
2017-09-25 16:04:37 +00:00
Reid Kleckner
3fc649cb76
[Support] Rename tool_output_file to ToolOutputFile, NFC
...
This class isn't similar to anything from the STL, so it shouldn't use
the STL naming conventions.
llvm-svn: 314050
2017-09-23 01:03:17 +00:00
Jeroen Ketema
80d2e8ffc1
Move BufferPtr into the block where it it being used
...
The previous location outside the block would crash prepare-builtins
when no the builtins file accidentially not passed on the command line.
llvm-svn: 294916
2017-02-12 21:33:49 +00:00
Tom Stellard
d83eb34ee7
Fix build since r286752.
...
llvm-svn: 286839
2016-11-14 16:06:33 +00:00
Tom Stellard
088faab429
Fix build since llvm r286566 and require at least llvm 4.0
...
llvm-svn: 286634
2016-11-11 21:34:47 +00:00
Matt Arsenault
7ef7e6aacd
Strip opencl.ocl.version metadata
...
This should be uniqued when linking, but right now it creates
a lot of metadata spam listing the same version. This should also
probably be reporting the compiled version of the user program,
which may differ from the library. Currently the library IR files report
1.0 while 1.1/1.2 are the default for user programs.
llvm-svn: 279692
2016-08-25 00:25:10 +00:00
Tom Stellard
6cb18a09b1
prepare-builtins: Remove call to getGlobalContext()
...
This function has been removed from LLVM.
Patch By: Laurent Carlier
llvm-svn: 266430
2016-04-15 14:18:58 +00:00
Jeroen Ketema
d915739b38
Require LLVM >=3.7 and bump version to 0.2.0
...
v2: Also remove LLVM 3.6 traces from prepare-builtins.cpp
Patch by: EdB
llvm-svn: 244310
2015-08-07 08:31:37 +00:00
Tom Stellard
0e4152e391
prepare-builtins: Fix build with LLVM 3.6
...
Patch by: Tomasz Borowik
llvm-svn: 241905
2015-07-10 13:37:04 +00:00
Jeroen Ketema
2697d2a43b
Properly initialize Module pointer
...
llvm-svn: 240881
2015-06-27 12:35:54 +00:00
Tom Stellard
4957e4057d
prepare-builtins: Fix build with LLVM 3.7
...
llvm-svn: 240552
2015-06-24 17:03:50 +00:00
Tom Stellard
1d77071e0d
Require LLVM 3.6 and bump version to 0.1.0
...
Some functions are implemented using hand-written LLVM IR, and
LLVM assembly format is allowed to change between versions, so we
should require a specific version of LLVM.
llvm-svn: 225041
2014-12-31 15:27:53 +00:00
Michel Danzer
7b77ab7b2c
Fix build against LLVM SVN >= r216488
...
Tested-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 216654
2014-08-28 06:19:37 +00:00
Michel Danzer
a10b492ce3
Fix build against LLVM SVN >= r216393
...
Tested-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 216653
2014-08-28 06:19:33 +00:00
Niels Ole Salscheider
109ce69e75
Include llvm-config.h instead of config.h
...
Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 216296
2014-08-22 22:24:28 +00:00
Tom Stellard
8d92c396d9
prepare-builtins: Fix broken build due to recent LLVM API change
...
llvm-svn: 212470
2014-07-07 17:46:45 +00:00
Jeroen Ketema
d253e66ec7
Fix breakage after r211259
...
While we are here introduce the proper headers for the error code.
Reviewed-by: Tom Stellard <tom@stellard.net>
llvm-svn: 211432
2014-06-21 09:20:31 +00:00
Tom Stellard
0ab103422d
prepare-builtins: Use std:: prefix for error_code
...
This fixes the build with with newer LLVM.
llvm-svn: 210867
2014-06-13 01:30:14 +00:00
Jeroen Ketema
a3089bd7e5
Remove unused include which breaks build after r210803
...
Tested with llvm 3.4 and trunk.
llvm-svn: 210825
2014-06-12 21:10:17 +00:00
Jeroen Ketema
f3943efe17
Fix build broken by LLVM commit r209103
...
Reviewed-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 210111
2014-06-03 15:43:57 +00:00
Tom Stellard
98dccb109b
Fix build broken by LLVM commit r207593
...
llvm-svn: 207685
2014-04-30 18:35:20 +00:00
Tom Stellard
7aee1cfa99
Fix build since r202052
...
sys::fs_F_Binary has been replaced with sys::fs_F_Text
llvm-svn: 202081
2014-02-24 21:31:56 +00:00
Tom Stellard
8a63b15b3c
Fix build broken by LLVM commit r199279
...
Patch by: Udo van den Heuvel
Tom Stellard:
- Added ifdef and error handling
llvm-svn: 199687
2014-01-20 20:28:48 +00:00
Aaron Watry
0da3d3b5ba
Fix build with LLVM 3.4
...
F_Binary and friends were moved to include/Support/FileSystem.h
v2: Maintain compatibility with LLVM 3.3
Signed-off-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 186610
2013-07-18 21:24:35 +00:00
Tom Stellard
976577ecae
Fix build with LLVM 3.3
...
Patch by: Niels Ole Salscheider
llvm-svn: 184989
2013-06-26 18:20:32 +00:00
Peter Collingbourne
d5395fbf03
Initial commit.
...
llvm-svn: 147756
2012-01-08 22:09:58 +00:00