Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
347d5593
Commit
347d5593
authored
12 years ago
by
Benjamin Kramer
Browse files
Options
Downloads
Patches
Plain Diff
Pull the simple parts of DenseMapInfo<DebugLoc> inline and prune includes.
llvm-svn: 160507
parent
e6dc3307
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/include/llvm/Support/DebugLoc.h
+4
-5
4 additions, 5 deletions
llvm/include/llvm/Support/DebugLoc.h
llvm/lib/VMCore/DebugLoc.cpp
+0
-12
0 additions, 12 deletions
llvm/lib/VMCore/DebugLoc.cpp
with
4 additions
and
17 deletions
llvm/include/llvm/Support/DebugLoc.h
+
4
−
5
View file @
347d5593
...
...
@@ -15,9 +15,8 @@
#ifndef LLVM_SUPPORT_DEBUGLOC_H
#define LLVM_SUPPORT_DEBUGLOC_H
#include
"llvm/ADT/DenseMapInfo.h"
namespace
llvm
{
template
<
typename
T
>
struct
DenseMapInfo
;
class
MDNode
;
class
LLVMContext
;
...
...
@@ -103,10 +102,10 @@ namespace llvm {
template
<
>
struct
DenseMapInfo
<
DebugLoc
>
{
static
DebugLoc
getEmptyKey
()
;
static
DebugLoc
getTombstoneKey
()
;
static
DebugLoc
getEmptyKey
()
{
return
DebugLoc
::
getEmptyKey
();
}
static
DebugLoc
getTombstoneKey
()
{
return
DebugLoc
::
getTombstoneKey
();
}
static
unsigned
getHashValue
(
const
DebugLoc
&
Key
);
static
bool
isEqual
(
const
DebugLoc
&
LHS
,
const
DebugLoc
&
RHS
)
;
static
bool
isEqual
(
DebugLoc
LHS
,
DebugLoc
RHS
)
{
return
LHS
==
RHS
;
}
};
}
// end namespace llvm
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/VMCore/DebugLoc.cpp
+
0
−
12
View file @
347d5593
...
...
@@ -150,22 +150,10 @@ void DebugLoc::dump(const LLVMContext &Ctx) const {
// DenseMap specialization
//===----------------------------------------------------------------------===//
DebugLoc
DenseMapInfo
<
DebugLoc
>::
getEmptyKey
()
{
return
DebugLoc
::
getEmptyKey
();
}
DebugLoc
DenseMapInfo
<
DebugLoc
>::
getTombstoneKey
()
{
return
DebugLoc
::
getTombstoneKey
();
}
unsigned
DenseMapInfo
<
DebugLoc
>::
getHashValue
(
const
DebugLoc
&
Key
)
{
return
static_cast
<
unsigned
>
(
hash_combine
(
Key
.
LineCol
,
Key
.
ScopeIdx
));
}
bool
DenseMapInfo
<
DebugLoc
>::
isEqual
(
const
DebugLoc
&
LHS
,
const
DebugLoc
&
RHS
)
{
return
LHS
==
RHS
;
}
//===----------------------------------------------------------------------===//
// LLVMContextImpl Implementation
//===----------------------------------------------------------------------===//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment