Richard Smith
47972afd10
[modules] Simplify -cc1 interface for enabling implicit module maps.
...
We used to have a flag to enable module maps, and two more flags to enable
implicit module maps. This is all redundant; we don't need any flag for
enabling module maps in the abstract, and we don't usually have -fno- flags for
-cc1. We now have just a single flag, -fimplicit-module-maps, that enables
implicitly searching the file system for module map files and loading them.
The driver interface is unchanged for now. We should probably rename
-fmodule-maps to -fimplicit-module-maps at some point.
llvm-svn: 239789
2015-06-16 00:08:24 +00:00
Reid Kleckner
1cbd9aa96d
Reland (2x) r230314, "Fix codegen for virtual methods that are (re-) exported from multiple modules."
...
This reverts commits r230477 and r230478.
llvm-svn: 230526
2015-02-25 19:17:48 +00:00
NAKAMURA Takumi
e218a40a40
Revert r230448, "Reland r230314 "Fix codegen for virtual methods that are (re-) exported from multiple modules."", since I have reverted r230446.
...
llvm-svn: 230477
2015-02-25 10:49:59 +00:00
Reid Kleckner
64b04b9bdf
Reland r230314 "Fix codegen for virtual methods that are (re-) exported from multiple modules."
...
This reverts the revert from commit r230406.
The changes in r230445 and r230446 make the test pass on Windows now.
llvm-svn: 230448
2015-02-25 02:19:56 +00:00
NAKAMURA Takumi
e976aab1df
Revert r230314, "Fix codegen for virtual methods that are (re-) exported from multiple modules."
...
It crashes for targeting (i686|x86_64)-win32.
clang: clang/lib/AST/VTableBuilder.cpp:142: {anonymous}::FinalOverriders::OverriderInfo {anonymous}::FinalOverriders::getOverrider(const clang::CXXMethodDecl*, clang::CharUnits) const: Assertion `OverridersMap.count(std::make_pair(MD, BaseOffset)) && "Did not find overrider!"' failed.
llvm-svn: 230406
2015-02-25 00:18:22 +00:00
Manuel Klimek
7906f139c3
Fix codegen for virtual methods that are (re-) exported from multiple modules.
...
Fixes multiple crashes where a non-canonical decl would be used as key
in a lookup.
llvm-svn: 230314
2015-02-24 09:06:28 +00:00