- Nov 02, 2010
-
-
Mikhail Glushenkov authored
This allows using GetDLLSuffix() with appendSuffix(). llvm-svn: 118051
-
Mikhail Glushenkov authored
llvm-svn: 118050
-
- Oct 19, 2010
-
-
Owen Anderson authored
Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize the pass's dependencies. Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h before parsing commandline arguments. I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass registration/creation, please send the testcase to me directly. llvm-svn: 116820
-
- Oct 07, 2010
-
-
Dan Gohman authored
llvm-svn: 115973
-
- Sep 14, 2010
-
-
Michael J. Spencer authored
This reverts commit r113632 Conflicts: cmake/modules/AddLLVM.cmake llvm-svn: 113819
-
- Sep 10, 2010
-
-
Michael J. Spencer authored
llvm-svn: 113632
-
- Sep 01, 2010
-
-
Dan Gohman authored
of a base class. This makes it possible to unregister the file from FilesToRemove when the file is done. Also, this eliminates the need for formatted_tool_output_file. llvm-svn: 112706
-
- Aug 20, 2010
-
-
Dan Gohman authored
checking to places which previously lacked it. llvm-svn: 111651
-
Dan Gohman authored
llvm-svn: 111599
-
- May 07, 2010
-
-
Chris Lattner authored
llvm-svn: 103263
-
- Apr 17, 2010
-
-
Dan Gohman authored
llvm-svn: 101656
-
- Mar 30, 2010
-
-
Dan Gohman authored
llvm-svn: 99915
-
- Mar 27, 2010
-
-
Chris Lattner authored
llvm-svn: 99721
-
Dan Gohman authored
llvm-svn: 99719
-
Dan Gohman authored
llvm-svn: 99716
-
- Mar 24, 2010
-
-
Dan Gohman authored
llvm-svn: 99416
-
Dan Gohman authored
raw_ostream variables immediately before they go out of scope. llvm-svn: 99413
-
- Mar 23, 2010
-
-
Chris Lattner authored
this fixes crashes in error cases, PR6683 llvm-svn: 99334
-
- Jan 28, 2010
-
-
Benjamin Kramer authored
llvm-svn: 94746
-
- Jan 24, 2010
-
-
Chris Lattner authored
llvm-svn: 94378
-
- Jan 22, 2010
-
-
Chris Lattner authored
missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. llvm-svn: 94164
-
- Oct 22, 2009
-
-
Chris Lattner authored
llvm-svn: 84819
-
- Aug 25, 2009
-
-
Dan Gohman authored
This is conventional command-line tool behavior. -f now just means "enable binary output on terminals". Add a -f option to llvm-extract and llvm-link, for consistency. Remove F_Force from raw_fd_ostream and enable overwriting and truncating by default. Introduce an F_Excl flag to permit users to enable a failure when the file already exists. This flag is currently unused. Update Makefiles and documentation accordingly. llvm-svn: 79990
-
- Aug 24, 2009
-
-
Chris Lattner authored
forcing them down into various .cpp files. This change also: 1. Renames TimeValue::toString() and Path::toString() to ::str() for similarity with the STL. 2. Removes all stream insertion support for sys::Path, forcing clients to call .str(). 3. Removes a use of Config/alloca.h from bugpoint, using smallvector instead. 4. Weans llvm-db off <iostream> sys::Path really needs to be gutted, but I don't have the desire to do it at this point. llvm-svn: 79869
-
- Aug 23, 2009
-
-
Chris Lattner authored
instead of as two bools. Use this to add a F_Append flag which has the obvious behavior. Other unrelated changes conflated into this patch: 1. REmove EH stuff from llvm-dis and llvm-as, the try blocks are dead. 2. Simplify the filename inference code in llvm-as/llvm-dis, because raw_fd_ostream does the right thing with '-'. 3. Switch machine verifier to use raw_ostream instead of ostream (Which is the thing that needed append in the first place). llvm-svn: 79807
-
- Aug 05, 2009
-
-
Dan Gohman authored
for use with sys::Path::GetMainExecutable, to avoid warnings with -pedantic. llvm-svn: 78245
-
Dan Gohman authored
just argv[0]. And remove the code for searching the current working directory and for searching PATH; the point of FindExecutable is not to find whatever version of the executable can be found by searching around, but to find an executable that accompanies the current executable. Update the tools to use sys::Program::FindProgramByName when they want PATH searching. llvm-svn: 78240
-
- Jul 22, 2009
-
-
Sanjiv Gupta authored
llvm-svn: 76768
-
- Jul 16, 2009
-
-
Dan Gohman authored
llvm-svn: 76070
-
Daniel Dunbar authored
llvm-svn: 75892
-
Owen Anderson authored
To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now. This will let us to hardwire stuff to the global context in the short term while the API is sorted out. llvm-svn: 75846
-
- Jul 15, 2009
-
-
Dan Gohman authored
llvm-svn: 75791
-
- Jul 01, 2009
-
-
Owen Anderson authored
llvm-svn: 74640
-
Owen Anderson authored
Add a pointer to the owning LLVMContext to Module. This requires threading LLVMContext through a lot of the bitcode reader and ASM parser APIs, as well as supporting it in all of the tools. Patches for Clang and LLVM-GCC to follow. llvm-svn: 74614
-
- Jun 03, 2009
-
-
Daniel Dunbar authored
- This matches llvm-ld. It took a bit of archeology to figure out what the right thing to do was (whether this was intentionally added or intentionally removed). My final conclusion is that Chris added this intentionally here: http://llvm.org/viewvc/llvm-project?view=rev&revision=16913 but the changes weren't propogated to llvm-ld until here: http://llvm.org/viewvc/llvm-project?view=rev&revision=34058 which was after lto.cpp had been cloned off (of llvm-ld), here: http://llvm.org/viewvc/llvm-project?view=rev&revision=29494 From the commit message, it looks like the motivation for running global opt again is because we ran it prior to inlining. Based on that I updated the comment and also only run the pass if we actually ran the inliner. Chris, please review. llvm-svn: 72811
-
Daniel Dunbar authored
- I know it sounds crazy, but I think all the pass lists are now coalesced into StandardPasses.h. llvm-svn: 72805
-
- Mar 06, 2009
-
-
Chris Lattner authored
their main routines. This makes the tools print their argc/argv commands if they crash. llvm-svn: 66248
-
- Feb 26, 2009
-
-
Nick Lewycky authored
llvm-svn: 65508
-
- Jan 05, 2009
-
-
Chris Lattner authored
not in system library directories by checking -L paths as well. Patch by Axel Naumann! llvm-svn: 61730
-
- Nov 19, 2008
-
-
Andrew Lenharth authored
llvm-svn: 59642
-