1. May 14, 2016
    • Chris Bieneman's avatar
      [obj2yaml] [yaml2obj] Basic support for MachO::load_command · 8b5906ea
      Chris Bieneman authored
      This patch adds basic support for MachO::load_command. Load command types and sizes are encoded in the YAML and expanded back into MachO.
      
      The YAML doesn't yet support load command structs, that is coming next. In the meantime as a temporary measure when writing MachO files the load commands are padded with zeros so that the generated binary is valid.
      
      llvm-svn: 269442
      8b5906ea
    • Etienne Bergeron's avatar
      [include-fixer] Fix broken dependency shared build · 8db51743
      Etienne Bergeron authored
      Summary:
      The shared build is broken (again).
      
      To repro: [Release + Shared]
      ```
      -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
      ```
      
      Errors:
      ```
      tools/clang/tools/extra/include-fixer/tool/CMakeFiles/clang-include-fixer.dir/ClangIncludeFixer.cpp.o: In function `(anonymous namespace)::includeFixerMain(int, char const**)':
      ClangIncludeFixer.cpp:(.text._ZN12_GLOBAL__N_116includeFixerMainEiPPKc+0xbe9): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      collect2: error: ld returned 1 exit status
      ```
      
      ```
      tools/clang/tools/extra/unittests/include-fixer/CMakeFiles/IncludeFixerTests.dir/IncludeFixerTest.cpp.o: In function `clang::include_fixer::(anonymous namespace)::runIncludeFixer(llvm::StringRef, std::vector<std::string, std::allocator<std::string> > const&)':
      IncludeFixerTest.cpp:(.text._ZN5clang13include_fixer12_GLOBAL__N_1L15runIncludeFixerEN4llvm9StringRefERKSt6vectorISsSaISsEE+0x10e): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      IncludeFixerTest.cpp:(.text._ZN5clang13include_fixer12_GLOBAL__N_1L15runIncludeFixerEN4llvm9StringRefERKSt6vectorISsSaISsEE+0x1dc): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      IncludeFixerTest.cpp:(.text._ZN5clang13include_fixer12_GLOBAL__N_1L15runIncludeFixerEN4llvm9StringRefERKSt6vectorISsSaISsEE+0x2f3): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      IncludeFixerTest.cpp:(.text._ZN5clang13include_fixer12_GLOBAL__N_1L15runIncludeFixerEN4llvm9StringRefERKSt6vectorISsSaISsEE+0x40e): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      IncludeFixerTest.cpp:(.text._ZN5clang13include_fixer12_GLOBAL__N_1L15runIncludeFixerEN4llvm9StringRefERKSt6vectorISsSaISsEE+0x526): undefined reference to `clang::find_all_symbols::SymbolInfo::SymbolInfo(llvm::StringRef, clang::find_all_symbols::SymbolInfo::SymbolKind, llvm::StringRef, int, std::vector<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string>, std::allocator<std::pair<clang::find_all_symbols::SymbolInfo::ContextType, std::string> > > const&)'
      ```
      
      Reviewers: bkramer, hokein
      
      Subscribers: cfe-commits
      
      Differential Revision: http://reviews.llvm.org/D20245
      
      llvm-svn: 269441
      8db51743
    • Richard Smith's avatar
      Fix module map typo in r269347. · 4e67cf9a
      Richard Smith authored
      llvm-svn: 269440
      4e67cf9a
    • Sanjay Patel's avatar
      0c8f3f93
    • Richard Smith's avatar
      Update module map for r269380. · 27dba61f
      Richard Smith authored
      llvm-svn: 269438
      27dba61f
    • Rong Xu's avatar
      [PGO] Add flags to control IRPGO warnings. · 0698de92
      Rong Xu authored
      Currently there is no reasonable way to control the warnings in the 'use' phase
      of the IRPGO pass. This is problematic because the output can be somewhat
      spammy. This patch adds some flags which allow us to optionally disable these
      warnings. The current upstream behavior will remain the default.
      
      Patch by Jake VanAdrighem (jvanadrighem@gmail.com)
      
      Differential Revision: http://reviews.llvm.org/D20195
      
      llvm-svn: 269437
      0698de92
    • Bryan Chan's avatar
      [RuntimeDyld] Support R_390_PC64 relocation type · d1145ad2
      Bryan Chan authored
      Summary: When the MCJIT generates ELF code, some DWARF data requires 64-bit PC-relative relocation (R_390_PC64). This patch adds support for R_390_PC64 relocation to RuntimeDyld::resolveSystemZRelocation, to avoid an assertion failure.
      
      Reviewers: uweigand
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D20033
      
      llvm-svn: 269436
      d1145ad2
    • Yaxun Liu's avatar
      Revert "[OpenCL] Add supported OpenCL extensions to target info." · fa1df45c
      Yaxun Liu authored
      Revert r269431 due to build failure caused by warning msg:
      
        llvm/tools/clang/lib/Basic/Targets.cpp:2090:9: error: 'setSupportedOpenCLOpts' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
         void setSupportedOpenCLOpts() {
      
      llvm-svn: 269435
      fa1df45c
    • Ed Maste's avatar
      Disable HostThread::Cancel assertion on FreeBSD · 718e2968
      Ed Maste authored
      It is still used by ProcessMonitor::StopMonitoringChildProcess and
      ProcessMonitor::StopOpThread.
      
      llvm-svn: 269434
      718e2968
    • Jun Bum Lim's avatar
      [MemCpyOpt] Use MaxIntSize in byte instead of bit · f28beac4
      Jun Bum Lim authored
      Summary: This change fix the bug in isProfitableToUseMemset() where MaxIntSize shoule be in byte, not bit.
      
      Reviewers: arsenm, joker.eph, mcrosier
      
      Subscribers: mcrosier, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D20176
      
      llvm-svn: 269433
      f28beac4
    • Renato Golin's avatar
      Revert "[llc] New diagnostic handler" · e9fa3585
      Renato Golin authored
      This reverts commit r269428, as it breaks the LLDB build. We need to
      understand how to change LLDB in the same way as LLC before landing this
      again.
      
      llvm-svn: 269432
      e9fa3585
  2. May 13, 2016