Skip to content
  1. Jan 11, 2019
    • Martin Storsjö's avatar
      [llvm-objcopy] [COFF] Fix writing object files without symbols/string table · d1cc64fe
      Martin Storsjö authored
      Previously, this was broken - by setting PointerToSymbolTable to zero
      but still actually writing the string table length, the object file
      header was corrupted.
      
      Differential Revision: https://reviews.llvm.org/D56584
      
      llvm-svn: 350926
      d1cc64fe
    • Dmitry Venikov's avatar
      [llvm-symbolizer] Add -exe, -e as aliases to -obj · 37c1e2e7
      Dmitry Venikov authored
      Summary: Provides -exe, -e as aliases to -obj. Motivation: https://bugs.llvm.org/show_bug.cgi?id=40071
      
      Reviewers: ruiu, rnk, fjricci, jhenderson
      
      Reviewed By: jhenderson
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56580
      
      llvm-svn: 350925
      37c1e2e7
    • Pavel Labath's avatar
      Introduce SymbolFileBreakpad and use it to fill symtab · 1cf23e1a
      Pavel Labath authored
      Summary:
      This commit adds the glue code necessary to integrate the
      SymbolFileBreakpad into the plugin system. Most of the methods are
      stubbed out. The only method implemented method is AddSymbols, which
      parses the PUBLIC "section" of the breakpad "object file", and fills out
      the Module's symtab.
      
      To enable testing this, I've made two additional changes:
      - dump Symtab from the SymbolVendor class. The symtab was already being
        dumped as a part of the object file dump, but that happened before
        symbol vendor kicked in, so it did not reflect any symbols added
        there.
      - add ability to explicitly specify the external symbol file in
        lldb-test (so that the object file could be linked with the breakpad
        symbol file). To make things simpler, I've changed lldb-test from
        consuming multiple inputs (and dumping their symbols) to having it
        just process a single file per invocation. This was not a problem
        since everyone was using it that way already.
      
      Reviewers: clayborg, zturner, lemo, markmentovai, amccarth
      
      Subscribers: mgorny, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D56173
      
      llvm-svn: 350924
      1cf23e1a
    • Pavel Labath's avatar
      ELF: Fix base address computation code for files generated by yaml2obj · 43ddbc0b
      Pavel Labath authored
      The code was assuming that the elf file will have a PT_LOAD segment
      starting from the first byte of the file. While this is true for files
      generated by most linkers (it's a way of saving space), it is not a
      requirement. And files not satisfying this constraint can still be
      perfectly executable. yaml2obj is one of the tools which produces files
      like this.
      
      This patch relaxes the check in ObjectFileELF to take the address of the
      first PT_LOAD segment as the base address of the object (instead of the
      one with the offset 0). Since the PT_LOAD segments are supposed to be
      sorted according to the VM address, this entry will also be the one with
      the lowest VM address.
      
      If we ever run into files which don't have the PT_LOAD segments sorted,
      we can easily change this code to return the lowest VM address as the
      base address (if that is the correct thing to do for these files).
      
      llvm-svn: 350923
      43ddbc0b
    • Miklos Vajna's avatar
      [clang-tidy] new check 'readability-redundant-preprocessor' · 98ef5337
      Miklos Vajna authored
      Finds potentially redundant preprocessor directives.
      
      Reviewed By: aaron.ballman
      
      Differential Revision: https://reviews.llvm.org/D54349
      
      llvm-svn: 350922
      98ef5337
    • Martin Storsjö's avatar
      Revert "[SelectionDAGBuilder] Refactor GetRegistersForValue. NFCI." · 114ad37c
      Martin Storsjö authored
      This reverts commit r350841, as it actually had functional changes
      and broke compilation. See PR40290.
      
      llvm-svn: 350921
      114ad37c
    • Akira Hatanaka's avatar
      [Sema] Make canPassInRegisters return true if the CXXRecordDecl passed · 6c50e1fe
      Akira Hatanaka authored
      to it is a trivial_abi class.
      
      A class that has all of its copy and move constructors deleted can still
      be passed or returned in registers if the class is annotated with
      trivial_abi.
      
      This fixes PR39683.
      
      llvm-svn: 350920
      6c50e1fe
    • David Carlier's avatar
      [Sanitizer] Intercept getusershell · 8a81b292
      David Carlier authored
      - If entries are properly copied (there were a bug in FreeBSD implementation in earlier version), or list properly reset.
      
      Reviewers: vitalybuka, krytarowski
      
      Reviewed By: krytarowski
      
      Differential Revision: https://reviews.llvm.org/D56562
      
      llvm-svn: 350919
      8a81b292
    • Craig Topper's avatar
      [X86] Change vXi1 extract_vector_elt lowering to be legal if the index is 0.... · b97885cc
      Craig Topper authored
      [X86] Change vXi1 extract_vector_elt lowering to be legal if the index is 0. Add DAG combine to turn scalar_to_vector+extract_vector_elt into extract_subvector.
      
      We were lowering the last step extract_vector_elt to a bitcast+truncate. Change it to use an extract_vector_elt of index 0 instead. Add isel patterns to do the equivalent of what the bitcast would have done. Plus an isel pattern for an any_extend+extract to prevent some regressions.
      
      Finally add a DAG combine to turn v1i1 scalar_to_vector+extract_vector_elt of 0 into an extract_subvector.
      
      This fixes some of the regressions from D350800.
      
      llvm-svn: 350918
      b97885cc
    • Akira Hatanaka's avatar
      [Sema] If CheckPlaceholderExpr rewrites the initializer of an auto · d458ceda
      Akira Hatanaka authored
      variable during auto type deduction, use the rewritten initializer when
      performing initialization of the variable.
      
      This silences spurious -Warc-repeated-use-of-weak warnings that are
      issued when the initializer uses a weak ObjC pointer.
      
      Differential Revision: https://reviews.llvm.org/D55662
      
      llvm-svn: 350917
      d458ceda
    • Brian Gesiak's avatar
      Adapt to CXXMethodDecl::getThisType change (NFC) · eb139def
      Brian Gesiak authored
      Summary:
      https://reviews.llvm.org/D56509 changed the API of the
      CXXMethodDecl::getThisType method. Adapt to the change (and re-apply
      clang-format) to fix the clang-tidy build.
      
      llvm-svn: 350916
      eb139def
    • Richard Smith's avatar
      Remember to instantiate explicit template argument lists in a friend · 64095fc0
      Richard Smith authored
      function declaration.
      
      We'd previously often just drop these on the floor, and friend
      redeclaration matching would usually (but not always) figure out the
      right redeclaration anyway.
      
      Also, don't try to match a dependent friend function template
      specialization to a template until instantiation, and don't forget to
      reject qualified friend declarations in dependent contexts that don't
      name an already-declared entity.
      
      llvm-svn: 350915
      64095fc0
    • Brian Gesiak's avatar
      [AST] Remove ASTContext from getThisType (NFC) · 5488ab4d
      Brian Gesiak authored
      Summary:
      https://reviews.llvm.org/D54862 removed the usages of `ASTContext&` from
      within the `CXXMethodDecl::getThisType` method. Remove the parameter
      altogether, as well as all usages of it. This does not result in any
      functional change because the parameter was unused since
      https://reviews.llvm.org/D54862.
      
      Test Plan: check-clang
      
      Reviewers: akyrtzi, mikael
      
      Reviewed By: mikael
      
      Subscribers: mehdi_amini, dexonsmith, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D56509
      
      llvm-svn: 350914
      5488ab4d
    • Richard Trieu's avatar
      Fix header issues. · f8b8b39c
      Richard Trieu authored
      Several headers would fail to compile if other headers were not previously
      included.  The usual issue is that a class is forward declared, but the
      full definition is needed.  The requirement for the definition is use of
      isa/dyn_cast or calling functions of pointer-packed data types such as
      DenseMap or PointerIntPair.  Add missing includes to these headers.
      
      SVals.h required an out-of-line method definition in the .cpp file to avoid
      circular inclusion of headers with BasicValueFactory.h
      
      llvm-svn: 350913
      f8b8b39c
    • Aaron Ballman's avatar
    • Thomas Lively's avatar
      [WebAssembly] Add unimplemented-simd128 feature, gate builtins · b7b9fdc1
      Thomas Lively authored
      Summary: Depends on D56501. Also adds a macro define
      `__wasm_unimplemented_simd128__` for feature detection of
      unimplemented SIMD builtins.
      
      Reviewers: aheejin, dschuff
      
      Subscribers: sbc100, jgravelle-google, sunfish, kristina, cfe-commits, rrwinterton
      llvm-svn: 350909
      b7b9fdc1
    • Francis Visoiu Mistrih's avatar
      [llvm-objdump][MachO] Disable some invalid input tests · f57a247d
      Francis Visoiu Mistrih authored
      It causes some (but not all) bots to fail. I'll look into it tomorrow
      morning. Remove the tests for now to make the bots green.
      
      llvm-svn: 350908
      f57a247d
    • Artem Dergachev's avatar
      [analyzer] pr38838, pr39976: Fix crash on diagnosing before implicit destructor. · fc72007f
      Artem Dergachev authored
      We need to be able to emit the diagnostic at PreImplicitCall,
      and the patch implements this functionality.
      
      However, for now the need for emitting such diagnostics is not all that great:
      it is only necessary to not crash when emitting a false positive due to an
      unrelated issue of having dead symbol collection not working properly.
      
      Coming up with a non-false-positive test seems impossible with the current
      set of checkers, though it is likely to be needed for good things as well
      in the future.
      
      Differential Revision: https://reviews.llvm.org/D56042
      
      rdar://problem/46911462
      
      llvm-svn: 350907
      fc72007f
    • Heejin Ahn's avatar
      [WebAssembly] Fix stack pointer store check in RegStackify · e73c7a1a
      Heejin Ahn authored
      Summary:
      We now use __stack_pointer global and global.get/global.set instruction.
      This fixes the checking routine for stack_pointer writes accordingly.
      
      This also fixes the existing __stack_pointer test in reg-stackify.ll:
      That test used to pass not because of __stack_pointer clashes but
      because the function `stackpointer_callee` was not marked as `readnone`,
      so it was assumed to possibly write to memory arbitraily, and
      `global.set` instruction was marked as `mayStore` in the .td definition,
      so they were identified as intervening writes. After we added `readnone`
      to its attribute, this test fails without this patch.
      
      Reviewers: dschuff, sunfish
      
      Subscribers: jgravelle-google, sbc100, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56094
      
      llvm-svn: 350906
      e73c7a1a
    • Nico Weber's avatar
      gn build: Add a template for calling write_cmake_config.py · a82855a5
      Nico Weber authored
      No behavior change.
      
      Differential Revision: https://reviews.llvm.org/D56487
      
      llvm-svn: 350905
      a82855a5
    • Nico Weber's avatar
      gn build: Merge r350852 · e50254c6
      Nico Weber authored
      llvm-svn: 350904
      e50254c6
  2. Jan 10, 2019
Loading