Fix GCC build.

llvm-svn: 260317
This commit is contained in:
Peter Collingbourne 2016-02-09 23:01:38 +00:00
parent f8dfb47c02
commit 9b656527f1
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,8 @@ struct VTableSlot {
}
namespace llvm {
template <> struct DenseMapInfo<VTableSlot> {
static VTableSlot getEmptyKey() {
return {DenseMapInfo<Metadata *>::getEmptyKey(),
@ -196,6 +198,8 @@ template <> struct DenseMapInfo<VTableSlot> {
}
};
}
namespace {
// A virtual call site. VTable is the loaded virtual table pointer, and CS is