Rafael Espindola
dc28d9e2d2
PathV1 is deprecated since the 18th of Dec 2010. Remove it.
...
llvm-svn: 184960
2013-06-26 16:24:35 +00:00
Rafael Espindola
b77cf0c5fd
Add a convenience functions that don't return if the directory existed.
...
llvm-svn: 184955
2013-06-26 15:21:13 +00:00
Rafael Espindola
61fa1327a4
Add a simpler version of remove_all.
...
llvm-svn: 184919
2013-06-26 06:06:54 +00:00
Rafael Espindola
1c94419f89
Remove sys::GetMainExecutable.
...
llvm-svn: 184916
2013-06-26 05:05:37 +00:00
Rafael Espindola
07ffa7d08b
Port GetMainExecutable over to PathV2.
...
I will remove the V1 version as soon as I change clang in the next commit.
llvm-svn: 184914
2013-06-26 05:01:35 +00:00
Rafael Espindola
2d8fd3934d
Remove PathWithStatus.
...
llvm-svn: 184910
2013-06-26 04:15:55 +00:00
Ulrich Weigand
3e23cfcde6
[PowerPC] Support @got modifier
...
Add VK_... values and relocation types necessary to support
the @got family of modifiers. Used by the asm parser only.
llvm-svn: 184860
2013-06-25 16:49:50 +00:00
Rafael Espindola
4ff51c0bcf
Move GetEXESuffix to the one place it is used.
...
llvm-svn: 184853
2013-06-25 14:42:30 +00:00
Rafael Espindola
c818977b7b
Remove sys::PathSeparator.
...
llvm-svn: 184852
2013-06-25 14:32:45 +00:00
Benjamin Kramer
3b56c8dd50
BlockFrequency: Bump up the entry frequency a bit.
...
This is a band-aid to fix the most severe regressions we're seeing from basing
spill decisions on block frequencies, until we have a better solution.
llvm-svn: 184835
2013-06-25 13:34:40 +00:00
Rafael Espindola
35fe018057
keep only the StringRef version of getFileOrSTDIN.
...
llvm-svn: 184826
2013-06-25 05:28:34 +00:00
Rafael Espindola
8b1802841d
Create a replacement for sys::Path::PathSeparator.
...
llvm-svn: 184806
2013-06-25 01:10:36 +00:00
Rafael Espindola
c337eb5b91
Add a simpler version of is_regular_file.
...
llvm-svn: 184764
2013-06-24 17:54:24 +00:00
Benjamin Kramer
b6f0e39071
Reapply documentation changes from r184584.
...
llvm-svn: 184609
2013-06-21 23:45:18 +00:00
Benjamin Kramer
30c35d5305
Revert "BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability."
...
This reverts commit r184584. Breaks PPC selfhost.
llvm-svn: 184590
2013-06-21 20:20:27 +00:00
Benjamin Kramer
3315e168ee
BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability.
...
Zero is used by BlockFrequencyInfo as a special "don't know" value. It also
causes a sink for frequencies as you can't ever get off a zero frequency with
more multiplies.
This recovers a 10% regression on MultiSource/Benchmarks/7zip. A zero frequency
was propagated into an inner loop causing excessive spilling.
PR16402.
llvm-svn: 184584
2013-06-21 19:30:05 +00:00
Ulrich Weigand
3720d45002
[PowerPC] Support R_PPC_REL16 family of relocations
...
The GNU assembler supports (as extension to the ABI) use of PC-relative
relocations in half16 fields, which allows writing code like:
li 1, base-.
This patch adds support for those relocation types in the assembler.
llvm-svn: 184552
2013-06-21 14:44:37 +00:00
Ulrich Weigand
d5bb2945ff
[PowerPC] Support various tls-related modifiers
...
The current code base only supports the minimum set of tls-related
relocations and @modifiers that are necessary to support compiler-
generated code. This patch extends this to the full set defined
in the ABI (and supported by the GNU assembler) for the benefit
of the assembler parser.
llvm-svn: 184551
2013-06-21 14:44:15 +00:00
Ulrich Weigand
325653d5a4
[PowerPC] Support @higher et.al. modifiers
...
This adds support for the @higher, @highera, @highest, and @highesta
modifers, including some missing relocation types.
llvm-svn: 184550
2013-06-21 14:43:42 +00:00
Ulrich Weigand
283132010a
[PowerPC] Support @toc@h modifier
...
This adds the relocation type and other necessary infrastructure
to use the @toc@h modifier in the assembler.
llvm-svn: 184549
2013-06-21 14:43:10 +00:00
Rafael Espindola
9636a2717e
Remove last use of PathV1.h from Archive.cpp.
...
llvm-svn: 184484
2013-06-20 22:02:10 +00:00
Rafael Espindola
932ff464b9
make getLastModificationTime const. Move it with the other getters.
...
llvm-svn: 184478
2013-06-20 21:51:49 +00:00
Rafael Espindola
695308b067
Add a setLastModificationAndAccessTime to PathV2.
...
With this we can remove the last use of PathV1 from llvm-ar.cpp.
llvm-svn: 184464
2013-06-20 20:56:14 +00:00
Rafael Espindola
ffbd9ee39f
Add support for getting the last modification time from a file_status.
...
Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus.
llvm-svn: 184450
2013-06-20 18:42:04 +00:00
Rafael Espindola
0a090bf840
Remove the transitional GetUniqueID.
...
llvm-svn: 184433
2013-06-20 15:20:11 +00:00
Rafael Espindola
dc37cdb22d
Rename fs::GetUniqueID to fs::getUniqueID to match the style guide.
...
llvm-svn: 184431
2013-06-20 15:06:35 +00:00
Aaron Ballman
406fa22a89
Modified the implementation of fs::GetUniqueID on Windows such that it actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID.
...
llvm-svn: 184351
2013-06-19 21:03:50 +00:00
Rafael Espindola
8db1ef8cde
Remove Path::getDirectoryContents.
...
llvm-svn: 184311
2013-06-19 15:32:37 +00:00
Rafael Espindola
24a81dcac4
Remove Path::isObjectFile.
...
llvm-svn: 184305
2013-06-19 14:25:38 +00:00
Rafael Espindola
9f3be55a57
Remove Path::canExecute.
...
llvm-svn: 184298
2013-06-19 13:25:31 +00:00
Rafael Espindola
7250573745
Remove Path::canWrite.
...
llvm-svn: 184235
2013-06-18 21:10:03 +00:00
Rafael Espindola
40fa7cd224
Add a can_write function to PathV2.
...
llvm-svn: 184233
2013-06-18 20:56:38 +00:00
Rafael Espindola
9c21fca143
Remove unused Path::canRead.
...
llvm-svn: 184229
2013-06-18 20:42:25 +00:00
Rafael Espindola
9cac309394
Remove uniqueID from PathV1.h.
...
llvm-svn: 184219
2013-06-18 19:46:19 +00:00
Rafael Espindola
c014b80c02
Add a GetUniqueID that will replace the uniqueID of PathV1.h.
...
llvm-svn: 184217
2013-06-18 19:34:49 +00:00
Rafael Espindola
18bf1abdc7
Add a version of unique_file that return just the file name.
...
llvm-svn: 184206
2013-06-18 17:01:00 +00:00
Alexey Samsonov
50c414e3d0
Basic support for parsing Mach-O universal binaries in LLVMObject library
...
llvm-svn: 184191
2013-06-18 15:03:28 +00:00
Rafael Espindola
2b411d1243
Don't use PathV1.h in LTOCodeGenerator.cpp
...
This patch also adds a simpler version of sys::fs::remove and a tool_output_file
constructor for when we already have an open file.
llvm-svn: 184095
2013-06-17 18:05:35 +00:00
Rafael Espindola
a92eae8cb9
Delete declared but not implemented functions.
...
llvm-svn: 184087
2013-06-17 17:15:00 +00:00
Dmitri Gribenko
2c062d2c5f
Put back variable names because they are referenced in the documentation
...
comment.
llvm-svn: 184051
2013-06-16 03:22:56 +00:00
Rafael Espindola
61f7e167f2
Add GetCurrentDirectory back.
...
It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp
depends on the behaviour of the old one on Windows. Maybe a difference
between GetCurrentDirectoryA and GetCurrentDirectoryW?
llvm-svn: 184009
2013-06-14 21:41:33 +00:00
Rafael Espindola
9534308a00
Replace use of PathV1.h in MCContext.cpp.
...
GetCurrentDirectory is now unused. Remove it.
llvm-svn: 184003
2013-06-14 20:26:58 +00:00
Rafael Espindola
109393c56d
Replace use of PathV1.h in Program.cpp.
...
llvm-svn: 183996
2013-06-14 19:38:45 +00:00
Rafael Espindola
4430795d30
Convert a use of sys::Path::GetTemporaryDirectory.
...
llvm-svn: 183987
2013-06-14 16:43:15 +00:00
Rafael Espindola
703b03a992
Move PrependMainExecutablePath next to its only user.
...
llvm-svn: 183980
2013-06-14 15:12:13 +00:00
Rafael Espindola
6c0ca078e2
Don't use PathV1.h in Signals.h.
...
llvm-svn: 183947
2013-06-13 21:16:58 +00:00
Rafael Espindola
d94cf8dd17
Add a RemoveFileOnSignal that takes a StringRef.
...
llvm-svn: 183943
2013-06-13 21:01:17 +00:00
Rafael Espindola
1cc376fe6a
Don't use PathV1.h in FileUtilities.h.
...
llvm-svn: 183941
2013-06-13 20:41:00 +00:00
Rafael Espindola
ef0d0d8b0b
Avoid using PathV1.h in Program.h.
...
llvm-svn: 183940
2013-06-13 20:25:38 +00:00
Rafael Espindola
eed3b256ab
Add a version of sys::ExecuteAndWait that takes StringRefs.
...
llvm-svn: 183934
2013-06-13 20:06:28 +00:00
Rafael Espindola
332b3ad6f7
Have sys::FindProgramByName return a std::string.
...
llvm-svn: 183928
2013-06-13 19:25:37 +00:00
Rafael Espindola
df08289cf9
Reduce usage of sys::Path in the graph writer.
...
Now PathV1.h is not needed in GraphWriter.h.
llvm-svn: 183919
2013-06-13 17:20:48 +00:00
Rafael Espindola
a01a0af557
Add a version of DisplayGraph that takes a StringRef.
...
llvm-svn: 183915
2013-06-13 16:56:13 +00:00
Rafael Espindola
5b921b1aa1
Remove the program class.
...
It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.
llvm-svn: 183864
2013-06-12 20:58:35 +00:00
Rafael Espindola
c2d993a144
Add global versions of some Program static methods.
...
This is a temporary stepping stone for moving them out of Program.
llvm-svn: 183860
2013-06-12 20:42:59 +00:00
Rafael Espindola
7690460b6c
Inline Path::isBitcodeFile into only use and remove it.
...
llvm-svn: 183840
2013-06-12 15:13:57 +00:00
Rafael Espindola
eda0643880
Remove Path::getMagicNumber.
...
llvm-svn: 183839
2013-06-12 15:07:11 +00:00
Rafael Espindola
21dc9d4207
Remove Path::hasMagicNumber.
...
llvm-svn: 183838
2013-06-12 15:04:59 +00:00
Rafael Espindola
f2b87aba29
Remove Path::isAbsolute.
...
llvm-svn: 183836
2013-06-12 15:02:39 +00:00
Rafael Espindola
800537be0d
Remove Path::isAbsolute().
...
llvm-svn: 183835
2013-06-12 14:47:33 +00:00
Rafael Espindola
0aa6ee2d41
Remove Path::getSuffix.
...
llvm-svn: 183833
2013-06-12 14:32:51 +00:00
Rafael Espindola
89d2e1921d
Remove sys::CopyFile.
...
llvm-svn: 183831
2013-06-12 14:16:52 +00:00
Patrik Hagglund
2c2535b8d0
Fix 'gcc -flto' builds for unittest binaries (undefined reference to
...
`typeinfo for llvm:🆑 :GenericOptionValue').
Remove an "anchor" method for an abstract class. (This does not
increase the number of vtables.)
llvm-svn: 183830
2013-06-12 14:15:21 +00:00
Rafael Espindola
528e53f9f1
Remove the old file memory mapping functions.
...
llvm-svn: 183828
2013-06-12 14:11:15 +00:00
Rafael Espindola
072d5a2178
Remove Path::createFileOnDisk.
...
llvm-svn: 183827
2013-06-12 13:59:17 +00:00
Rafael Espindola
dc7cb4d0c4
Remove Path::makeExecutableOnDisk.
...
llvm-svn: 183826
2013-06-12 13:55:07 +00:00
Rafael Espindola
191f66d683
Move PathV2.h to Path.h
...
Most clients have already been moved from Path V1 to V2. The ones using V1
now include PathV1.h explicitly.
llvm-svn: 183801
2013-06-11 22:21:28 +00:00
Rui Ueyama
f9939fdb3c
[PECOFF] Remove COFF header from PE header for simplicity.
...
COFF header is always present both in executable and in object file. PE header
is present only in executable. So the natural way to handle PE/COFF file is
treating COFF is mandatory header and PE is optional. Current data structre
does not allow it, because PE header includes COFF header. Removing COFF
header will simplify the code to handle PE/COFF files.
Reviewers: Bigcheese
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D952
llvm-svn: 183788
2013-06-11 21:39:48 +00:00
Rafael Espindola
968c6bbebf
Include PathV1.h in files that use it.
...
This is preparation for replacing Path.h with PathV2.h.
llvm-svn: 183782
2013-06-11 20:00:56 +00:00
Rafael Espindola
993b0c88c5
Remove Path::getDirname.
...
llvm-svn: 183780
2013-06-11 19:32:57 +00:00
Rafael Espindola
3eb11a9b44
Remove Path::getBasename.
...
llvm-svn: 183779
2013-06-11 19:29:48 +00:00
Rafael Espindola
0ee1fd1460
Remove Path::getLast.
...
llvm-svn: 183778
2013-06-11 19:25:17 +00:00
Rafael Espindola
cd1368e1db
Remove GetDLLSuffix.
...
llvm-svn: 183777
2013-06-11 19:18:05 +00:00
Rafael Espindola
35b7309704
Remove GetRootDirectory.
...
llvm-svn: 183775
2013-06-11 19:13:52 +00:00
Rafael Espindola
e45b026a12
Remove GetUserHomeDirectory.
...
llvm-svn: 183773
2013-06-11 19:08:15 +00:00
Rafael Espindola
30fee8bd79
Remove GetSystemLibraryPaths.
...
llvm-svn: 183770
2013-06-11 18:58:47 +00:00
Rafael Espindola
018002f465
Remove Path::GetBitcodeLibraryPaths.
...
llvm-svn: 183765
2013-06-11 18:45:35 +00:00
Rafael Espindola
c5d8c2560a
Remove unused FindLibrary function.
...
llvm-svn: 183764
2013-06-11 18:41:07 +00:00
Rafael Espindola
d506a5e174
Remove sys::identifyFileType.
...
llvm-svn: 183763
2013-06-11 18:18:02 +00:00
Rafael Espindola
3ae9fcd908
Fix variable name style. Don't cast to and from int.
...
This enables the compiler to see the enum and produce warnings about a switch
not being fully covered. Fix one of these warnings.
llvm-svn: 183749
2013-06-11 15:29:10 +00:00
Rafael Espindola
1df3f4fedd
Add a missing 'e'.
...
llvm-svn: 183692
2013-06-10 20:32:27 +00:00
Rafael Espindola
053c8c898f
Remove the old IdentifyFileType now that lld was updated.
...
llvm-svn: 183671
2013-06-10 15:37:29 +00:00
Rafael Espindola
64def1c6ed
Pass a StringRef to sys::identifyFileType.
...
llvm-svn: 183669
2013-06-10 15:27:39 +00:00
Rafael Espindola
3db8a7c316
Update for current naming conventions.
...
I will change identifyFileType to use a StringRef in the next patch.
llvm-svn: 183664
2013-06-10 14:56:16 +00:00
Duncan Sands
5f79506fd3
Avoid warnings about unused parameters that tend to come up a lot when
...
building outside projects with a different compiler than that used to build
LLVM itself (eg switching between gcc and clang).
llvm-svn: 183650
2013-06-10 12:09:30 +00:00
Aaron Ballman
8be7652e28
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman!
...
llvm-svn: 183621
2013-06-08 20:29:03 +00:00
Sean Silva
1df320230d
[ELF] Add ELFOSABI_GNU.
...
ELFOSABI_LINUX is a historical alias for ELFOSABI_GNU according to
<http://www.sco.com/developers/gabi/latest/ch4.eheader.html >.
llvm-svn: 183339
2013-06-05 20:55:58 +00:00
Sylvestre Ledru
27eb6421e9
The GNU/HURD is also using the libc. Therefor, endian.h should be included, not machine/endian.h. See full build log https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.3&arch=hurd-i386&ver=1%3A3.3~%2Brc3-1~exp1&stamp=1370358869
...
llvm-svn: 183303
2013-06-05 09:17:26 +00:00
Eric Christopher
67d642450e
Add support for adding the contents of a StringRef to the MD5 hash.
...
llvm-svn: 183054
2013-05-31 22:34:56 +00:00
Eric Christopher
5877c8cf30
Move "unsigned char" -> "uint8_t".
...
llvm-svn: 183051
2013-05-31 22:34:34 +00:00
Simon Atanasyan
dd2b2c12e5
[Mips] Add Mips specific dynamic table entry tags.
...
llvm-svn: 182803
2013-05-28 20:48:56 +00:00
Eric Christopher
d9794c735b
Add some comments to the stringify function.
...
llvm-svn: 182710
2013-05-25 05:13:17 +00:00
Andrew Trick
9fff5d4a18
Fix RecyclingAllocator::PrintStats to print the underlying allocator's stats.
...
llvm-svn: 182700
2013-05-25 01:47:42 +00:00
Eric Christopher
ad99dcf36c
ArrayRef-ize MD5 and clean up a few variable names.
...
Add a stringize method to make dumping a bit easier, and add a testcase
exercising a few different paths.
llvm-svn: 182692
2013-05-24 23:08:17 +00:00
Michael J. Spencer
02fa6608fd
[Support] Remove Count{Leading,Trailing}Zeros_{32,64}.
...
llvm-svn: 182690
2013-05-24 22:58:37 +00:00
Quentin Colombet
a360776566
Follow up of the introduction of MCSymbolizer.
...
- Ressurect old MCDisassemble API to soften transition.
- Extend MCTargetDesc to set target specific symbolizer.
llvm-svn: 182688
2013-05-24 22:51:52 +00:00
Benjamin Kramer
08bbd1ab69
MathExtras: Return the result of find(First|Last)Set in the input type.
...
Otherwise ZB_Max returns a wrong result when sizeof(T) > sizeof(size_t).
llvm-svn: 182684
2013-05-24 22:25:20 +00:00
Michael J. Spencer
c195b8a813
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
...
llvm-svn: 182680
2013-05-24 22:23:49 +00:00
Michael J. Spencer
9da977410d
[Support][MathExtras] Add missing include and disable _BitScan{Forward,Reverse}64 on non x64 MSVC systems.
...
llvm-svn: 182671
2013-05-24 20:51:59 +00:00
Michael J. Spencer
dbf83dd515
[Support] Add type generic bit utilities to MathExtras.h
...
llvm-svn: 182667
2013-05-24 20:29:47 +00:00