summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do not use absolute path on the clang++ symlink.Oscar Fuentes2010-10-181-3/+5
| | | | | | Based on a patch by Ryuta Suzuki! llvm-svn: 116695
* Lift arg promotion from the X86 backend. This should be unified at some point.Eric Christopher2010-10-181-3/+57
| | | | llvm-svn: 116694
* Fixed debugserver to properly attach to a process by name with the Greg Clayton2010-10-1810-92/+163
| | | | | | | | | | | | | | | | | | | "vAttachName;<PROCNAME>" packet, and wait for a new process by name to launch with the "vAttachWait;<PROCNAME>". Fixed a few issues with attaching where if DoAttach() returned no error, yet there was no valid process ID, we would deadlock waiting for an event that would never happen. Added a new "process launch" option "--tty" that will launch the process in a new terminal if the Host layer supports the "Host::LaunchInNewTerminal(...)" function. This currently works on MacOSX and will allow the debugging of terminal applications that do complex operations with the terminal. Cleaned up the output when the process resumes, stops and halts to be consistent with the output format. llvm-svn: 116693
* Implement [dcl.attr.override]p2 and add tests for p1 and p2.Anders Carlsson2010-10-173-1/+41
| | | | llvm-svn: 116692
* Add test for [dcl.attr.final]p4.Anders Carlsson2010-10-171-0/+15
| | | | llvm-svn: 116691
* Added a new Host call to find LLDB related paths:Greg Clayton2010-10-1715-114/+834
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | static bool Host::GetLLDBPath (lldb::PathType path_type, FileSpec &file_spec); This will fill in "file_spec" with an appropriate path that is appropriate for the current Host OS. MacOSX will return paths within the LLDB.framework, and other unixes will return the paths they want. The current PathType enums are: typedef enum PathType { ePathTypeLLDBShlibDir, // The directory where the lldb.so (unix) or LLDB mach-o file in LLDB.framework (MacOSX) exists ePathTypeSupportExecutableDir, // Find LLDB support executable directory (debugserver, etc) ePathTypeHeaderDir, // Find LLDB header file directory ePathTypePythonDir // Find Python modules (PYTHONPATH) directory } PathType; All places that were finding executables are and python paths are now updated to use this Host call. Added another new host call to launch the inferior in a terminal. This ability will be very host specific and doesn't need to be supported on all systems. MacOSX currently will create a new .command file and tell Terminal.app to open the .command file. It also uses the new "darwin-debug" app which is a small app that uses posix to exec (no fork) and stop at the entry point of the program. The GDB remote plug-in is almost able launch a process and attach to it, it currently will spawn the process, but it won't attach to it just yet. This will let LLDB not have to share the terminal with another process and a new terminal window will pop up when you launch. This won't get hooked up until we work out all of the kinks. The new Host function is: static lldb::pid_t Host::LaunchInNewTerminal ( const char **argv, // argv[0] is executable const char **envp, const ArchSpec *arch_spec, bool stop_at_entry, bool disable_aslr); Cleaned up FileSpec::GetPath to not use strncpy() as it was always zero filling the entire path buffer. Fixed an issue with the dynamic checker function where I missed a '$' prefix that should have been added. llvm-svn: 116690
* Use a script for creating the clang++ executable.Oscar Fuentes2010-10-172-2/+19
| | | | | | | The previous method used the DESTDIR environment variable at configure time, but sometimes it is only available at install time. See PR8397. llvm-svn: 116689
* Now that we handle all allocas via a non-SP reg offset remove all of theEric Christopher2010-10-171-79/+39
| | | | | | special case handling for ARM::SP. llvm-svn: 116688
* Temporarily revert r116684. It was causing failures with Bill Wendling2010-10-171-47/+12
| | | | | | | Clang :: CodeGen/x86_32-arguments-darwin.c Clang :: CodeGen/x86_32-arguments-linux.c llvm-svn: 116687
* std::string cleanup.Benjamin Kramer2010-10-171-1/+1
| | | | llvm-svn: 116686
* Fix a typo and silence unused variable warnings in -Asserts build.Benjamin Kramer2010-10-171-4/+2
| | | | llvm-svn: 116685
* The "gcc.dg/compat/vector-1 -m32" test was broken after the MMX rewrite. TheBill Wendling2010-10-171-12/+47
| | | | | | | | function parameters weren't converted to use the correct type (x86_mmx). Add a check, similar to the one in llvm-gcc, to see if we need the x86_mmx type for that function parameter. If so, it coerces the type to be that. llvm-svn: 116684
* Allow more load types to be materialized through the allocas.Eric Christopher2010-10-171-1/+1
| | | | llvm-svn: 116683
* Build with RTTI and exceptions disabled. Only in GCC for now.Oscar Fuentes2010-10-178-0/+34
| | | | llvm-svn: 116682
* Optimize GEP off of intermediate allocas.Eric Christopher2010-10-171-14/+46
| | | | llvm-svn: 116681
* Fix comment.Eric Christopher2010-10-171-1/+1
| | | | llvm-svn: 116680
* Turn on AddOperator folding in GEP.Eric Christopher2010-10-171-1/+1
| | | | llvm-svn: 116679
* Use the i12 immediate versions of the load instructions - they're handledEric Christopher2010-10-171-6/+6
| | | | | | more in the post-passes. llvm-svn: 116678
* prefix more stuff with '$' to make sure we don't go trying to lookup anythingGreg Clayton2010-10-161-5/+5
| | | | | | we don't need to. llvm-svn: 116676
* Add a MCObjectFormat class so that code common to all targets that use aRafael Espindola2010-10-1612-63/+194
| | | | | | | | | | | | single object format can be shared. This also adds support for mov zed+(bar-foo), %eax on ELF and COFF targets. llvm-svn: 116675
* Fixed an issue with MachTask::TaskResume () where if the task was alreadyGreg Clayton2010-10-161-2/+6
| | | | | | | suspended, we would call "int ::task_resume (task_t task);" as many times as it took to resume the task which isn't what we want to do. llvm-svn: 116674
* Xcode keeps modifying the project file and I don't know how to ignore the ↵Argyrios Kyrtzidis2010-10-161-0/+1
| | | | | | change; just commit it. llvm-svn: 116673
* Coding by inspection has its problems.John McCall2010-10-162-0/+6
| | | | llvm-svn: 116672
* Hack around incompatible pointer warnings.Benjamin Kramer2010-10-161-1/+5
| | | | llvm-svn: 116671
* Eliminate some calls to Value::getNameStr.Benjamin Kramer2010-10-163-5/+5
| | | | llvm-svn: 116670
* Unbreak test on non-COFF targets.Benjamin Kramer2010-10-161-1/+1
| | | | llvm-svn: 116669
* validatorGabor Greif2010-10-161-0/+2
| | | | llvm-svn: 116668
* these items are done, afaikGabor Greif2010-10-161-6/+2
| | | | llvm-svn: 116667
* MC-COFF: Add support for default-null weak externals.Michael J. Spencer2010-10-164-49/+114
| | | | llvm-svn: 116666
* X86-Windows: Emit an undefined global __fltused symbol when targeting WindowsMichael J. Spencer2010-10-165-2/+60
| | | | | | if any floating point arguments are passed to an external function. llvm-svn: 116665
* Whitespace!Michael J. Spencer2010-10-164-111/+111
| | | | llvm-svn: 116664
* objc_exception_rethrow does not take an exception argument.John McCall2010-10-162-23/+22
| | | | | | rdar://problem/8535238 llvm-svn: 116663
* Reformatting.John McCall2010-10-162-4/+4
| | | | llvm-svn: 116662
* White-listing templated-scope friend decls is a good idea, but doing itJohn McCall2010-10-168-27/+68
| | | | | | | | by marking the decl invalid isn't. Make some steps towards supporting these and then hastily shut them down at the last second by marking them as unsupported. llvm-svn: 116661
* Revert r116656, "IRgen/Obj-C/NeXT: Fix the IR signature forDaniel Dunbar2010-10-162-15/+1
| | | | | | | | objc_exception_rethrow, so we don't...", since something is actually trying to call this with the wrong signature (!). Unfortunately I don't understand the new EH infrastructure well enough to fix it immediately. llvm-svn: 116660
* MC/AsmParser: Report .stabs directive as unsupported.Daniel Dunbar2010-10-161-0/+9
| | | | llvm-svn: 116659
* Add an empty robots.txt, mostly just to reduce errors in HTTP log.Daniel Dunbar2010-10-161-0/+2
| | | | llvm-svn: 116658
* Add a favicon.ico, mostly just to reduce errors in HTTP log.Daniel Dunbar2010-10-161-0/+0
| | | | llvm-svn: 116657
* IRgen/Obj-C/NeXT: Fix the IR signature for objc_exception_rethrow, so we don'tDaniel Dunbar2010-10-162-1/+15
| | | | | | generate unnecessary %al clear on x86_64. llvm-svn: 116656
* More machine LICM work. It now tracks register pressure for path from ↵Evan Cheng2010-10-161-69/+155
| | | | | | preheader to current BB and use the information determine whether hoisting is worthwhile. llvm-svn: 116654
* Fix some funky formatting that got through.Eric Christopher2010-10-161-1/+3
| | | | llvm-svn: 116653
* Fix a rewriting bug of rewriting properties declared inFariborz Jahanian2010-10-162-24/+47
| | | | | | protocols. // rdar: //8558702 llvm-svn: 116652
* Tweak scan-build to work with naked clang commands.Ted Kremenek2010-10-161-0/+2
| | | | llvm-svn: 116651
* Not really sure how this worked, but it seems like a clear typo. =]Chandler Carruth2010-10-161-1/+1
| | | | llvm-svn: 116650
* Missed this spot where module.cleanup() can be passed a test instance toJohnny Chen2010-10-161-1/+1
| | | | | | | facilitate session recording. This happens inside an instance method where the test instance is well known. llvm-svn: 116649
* Some re-achitecturing of the plugins interface. The caller is now required toJohnny Chen2010-10-153-76/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pass in a 'sender' arg to the buildDefault(), buildDsym(), buildDwarf(), and cleanup() functions. The sender arg will be the test instance itself (i.e., an instance of TestBase). This is so that the relevant command execution can be recorded in the TestBase.session object if sender is available. The lldbtest.system() command has been modified to pop the 'sender' arg out of the keyword arguments dictionary and use it as the test instance to facilitate seesion recordings. An example is in test/types/AbstractBase.py: def generic_type_tester(self, atoms, quotedDisplay=False): """Test that variables with basic types are displayed correctly.""" # First, capture the golden output emitted by the oracle, i.e., the # series of printf statements. go = system("./a.out", sender=self) There are cases when sender is None. This is the case when the @classmethod is involved in the use of these APIs. When this happens, there is no recording into a session object, but printing on the sys.stderr is still honored if the trace flag is ON. An example is in test/settings/TestSettings.py: @classmethod def classCleanup(cls): system(["/bin/sh", "-c", "rm -f output.txt"]) system(["/bin/sh", "-c", "rm -f stdout.txt"]) llvm-svn: 116648
* Allow list-initialization of a local variable of class type with aDouglas Gregor2010-10-152-5/+20
| | | | | | | | flexible array member, so long as the flexibility array member is either not initialized or is initialized with an empty initializer list. Fixes <rdar://problem/8540437>. llvm-svn: 116647
* Use line_number() utility function to find the number from main.c to test ↵Johnny Chen2010-10-152-3/+7
| | | | | | | | against instead of using hard-coded line number. llvm-svn: 116646
* Remove the @expectedFailure decorators, as rdar://problem/8542091 is ↵Johnny Chen2010-10-151-4/+3
| | | | | | | | supposed to be fixed. Also change the expected matching pattern of the 'expr -o -- my' output. llvm-svn: 116645
* ARMCodeEmitter::emitMiscInstruction is dead. Long liveBill Wendling2010-10-151-45/+1
| | | | | | ARMCodeEmitter::emitMiscInstruction! llvm-svn: 116644
OpenPOWER on IntegriCloud