1. Mar 27, 2015
  2. Mar 26, 2015
    • Ed Maste's avatar
      Add FreeBSD/arm64 files to xcode build · 27b4ed09
      Ed Maste authored
      llvm-svn: 233281
      27b4ed09
    • Leny Kholodov's avatar
      [ARM] Fix PLT IFUNC symbol names in Release build · ab57d42d
      Leny Kholodov authored
      The fix is for r233277.
      This makes tests work.
      
      llvm-svn: 233280
      ab57d42d
    • Ilia K's avatar
      Fix RegisterCommandsTestCase and HelloWorldTestCase tests which hang on OS X... · 841e30ae
      Ilia K authored
      Fix RegisterCommandsTestCase and HelloWorldTestCase tests which hang on OS X after TestBase.tearDown()
      
      llvm-svn: 233279
      841e30ae
    • Ilia K's avatar
      Fix infinite loop when ^D was pressed (MI) · 5704347c
      Ilia K authored
      llvm-svn: 233278
      5704347c
    • Leny Kholodov's avatar
      [ARM] Implementation of PLT: handling of IFUNC calls (gnu_indirect_function) · 28074d6e
      Leny Kholodov authored
      This diff includes implementation of linking calls to ifunc functions.
      It provides ifunc entries in PLT and corresponding relocations (R_ARM_ALU_PC_G0_NC,
      R_ARM_ALU_PC_G1_NC, R_ARM_LDR_PC_G2 for link-time and R_ARM_IRELATIVE for run-time).
      
      Differential Revision: http://reviews.llvm.org/D7833
      
      llvm-svn: 233277
      28074d6e
    • Daniel Jasper's avatar
      clang-format: Fix merging of _T macros. · e99c72fc
      Daniel Jasper authored
      NewlinesBefore and HasUnescapedNewline were not properly propagated
      leading to llvm.org/PR23032.
      
      llvm-svn: 233276
      e99c72fc
    • Ed Schouten's avatar
      Make the presence of stdin and stdout optional. · f4ac884f
      Ed Schouten authored
      The idea behind Nuxi CloudABI is that it is targeted at (but not limited to)
      running networked services in a sandboxed environment. The model behind stdin,
      stdout and stderr is strongly focused on interactive tools in a command shell.
      CloudABI does not support the notion of stdin and stdout, as 'standard
      input/output' does not apply to services. The concept of stderr does makes
      sense though, as services do need some mechanism to log error messages in a
      uniform way.
      
      This patch extends libc++ in such a way that std::cin and std::cout and the
      associated <cstdio>/<cwchar> functions can be disabled through the flags
      _LIBCPP_HAS_NO_STDIN and _LIBCPP_HAS_NO_STDOUT, respectively. At the same time
      it attempts to clean up src/iostream.cpp a bit. Instead of using a single array
      of mbstate_t objects and hardcoding the array indices, it creates separate
      objects that declared next to the iostream objects and their buffers. The code
      is also restructured by interleaving the construction and setup of c* and wc*
      objects. That way it is more obvious that this is done identically.
      
      The c* and wc* objects already have separate unit tests. Make use of this fact
      by adding XFAILs in case libcpp-has-no-std* is set. That way the tests work in
      both directions. If stdin or stdout is disabled, these tests will therefore
      test for the absence of c* and wc*.
      
      Differential Revision:	http://reviews.llvm.org/D8340
      
      llvm-svn: 233275
      f4ac884f
    • Ed Schouten's avatar
      Remove the state_types array. · 4d514293
      Ed Schouten authored
      If we want to add support for making std::cin and std::cout optional, it
      is impractical to have all of the mbstate_t objects in one array. This
      would mean that if std::cin and std::cout are omitted, the state_types
      array is only used partially.
      
      Solve this by using separate global variables. These are placed right
      next to the iostream object and the buffer, meaning we can easily #ifdef
      them away.
      
      Differential Revision:	http://reviews.llvm.org/D8359
      
      llvm-svn: 233274
      4d514293
    • Ed Maste's avatar
      Handle FreeBSD/arm64 core files · 7754d21a
      Ed Maste authored
      This is derived from FreeBSD/mips64 and Darwin and Linux arm64 support.
      
      Differential Revision:	http://reviews.llvm.org/D7835
      
      llvm-svn: 233273
      7754d21a
    • Ilia K's avatar
      Destroy the attached process in tearDown() to fix ProcessAttachTestCase tests on OS X · c235b168
      Ilia K authored
      This patch fixes the following:
      ```
      1: test_attach_to_process_by_id_with_dsym (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process id ... ok
      2: test_attach_to_process_by_id_with_dwarf (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process id ... ok
      3: test_attach_to_process_by_name_with_dsym (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process name ... FAILURE
      4: test_attach_to_process_by_name_with_dwarf (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process name ... FAILURE
      
      ======================================================================
      FAIL: test_attach_to_process_by_name_with_dsym (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process name
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 462, in wrapper
          return func(self, *args, **kwargs)
        File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/TestProcessAttach.py", line 35, in test_attach_to_process_by_name_with_dsym
          self.process_attach_by_name()
        File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/TestProcessAttach.py", line 79, in process_attach_by_name
          self.runCmd("process attach -n s" + exe_name)
        File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2008, in runCmd
          msg if msg else CMD_MSG(cmd))
      AssertionError: False is not True : Command 'process attach -n sProcessAttach' returns successfully
      Config=x86_64-clang
      ======================================================================
      FAIL: test_attach_to_process_by_name_with_dwarf (TestProcessAttach.ProcessAttachTestCase)
         Test attach by process name
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 479, in wrapper
          return func(self, *args, **kwargs)
        File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/TestProcessAttach.py", line 41, in test_attach_to_process_by_name_with_dwarf
          self.process_attach_by_name()
        File "/Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/TestProcessAttach.py", line 79, in process_attach_by_name
          self.runCmd("process attach -n s" + exe_name)
        File "/Users/IliaK/p/llvm/tools/lldb/test/lldbtest.py", line 2008, in runCmd
          msg if msg else CMD_MSG(cmd))
      AssertionError: False is not True : Command 'process attach -n sProcessAttach' returns successfully
      Config=x86_64-clang
      ----------------------------------------------------------------------
      ```
      
      Failure-x86_64-clang-TestProcessAttach.ProcessAttachTestCase.test_attach_to_process_by_name_with_dsym.log:
      ```
      [...]
      runCmd: process attach -n ProcessAttach
      runCmd failed!
      error: attach failed: more than one process named ProcessAttach:
      PID    PARENT USER       TRIPLE                   ARGUMENTS
      ====== ====== ========== ======================== ============================
      43752  43680  IliaK      x86_64-apple-macosx      /Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/ProcessAttach
      43663  1      IliaK      x86_64-apple-macosx      /Users/IliaK/p/llvm/tools/lldb/test/functionalities/process_attach/ProcessAttach
      [...]
      ```
      
      llvm-svn: 233272
      c235b168
    • Toma Tabacu's avatar
      [mips] Move the setATReg definition inside the MipsAssemblerOptions class. NFC. · 92dbbf17
      Toma Tabacu authored
      Summary: This groups all of the MipsAssemblerOptions functionality together, making it more reader-friendly.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D8445
      
      llvm-svn: 233271
      92dbbf17
    • Andrea Di Biagio's avatar
      [X86][FastIsel] Teach how to select vector load instructions. · 8f7feec5
      Andrea Di Biagio authored
      This patch teaches fast-isel how to select 128-bit vector load instructions.
      Added test CodeGen/X86/fast-isel-vecload.ll
      
      Differential Revision: http://reviews.llvm.org/D8605
      
      llvm-svn: 233270
      8f7feec5
    • Ed Schouten's avatar
      Let Clang invoke CloudABI's linker. · 3c3e58c4
      Ed Schouten authored
      Now that CloudABI's target information and header search logic for Clang
      has been submitted, the only thing that remains to be done is adding
      support for CloudABI's linker.
      
      CloudABI uses Binutils ld, although there is some work to use lld
      instead. This means that this code is largely based on what we use on
      FreeBSD. There are some exceptions, however:
      
      - Only static linking is performed. CloudABI does not support any
        dynamically linked executables.
      - CloudABI uses compiler-rt, libc++ and libc++abi unconditionally. Link
        in these libraries instead of using libgcc_s, libstdc++, etc.
      - We must ensure that the .eh_frame_hdr is present to make C++
        exceptions work properly.
      
      
      Differential Revision:	http://reviews.llvm.org/D8250
      
      llvm-svn: 233269
      3c3e58c4