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
d19e91e5
Commit
d19e91e5
authored
16 years ago
by
Anton Korobeynikov
Browse files
Options
Downloads
Patches
Plain Diff
SmallPtrSet will be better
llvm-svn: 56583
parent
8e7b9393
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+2
-3
2 additions, 3 deletions
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
with
2 additions
and
3 deletions
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+
2
−
3
View file @
d19e91e5
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include
"llvm/Target/TargetMachine.h"
#include
"llvm/Target/TargetMachine.h"
#include
"llvm/Target/TargetOptions.h"
#include
"llvm/Target/TargetOptions.h"
#include
"llvm/Target/TargetRegisterInfo.h"
#include
"llvm/Target/TargetRegisterInfo.h"
#include
"llvm/ADT/DenseSet.h"
#include
"llvm/ADT/SmallPtrSet.h"
#include
"llvm/ADT/SmallPtrSet.h"
#include
"llvm/ADT/SmallString.h"
#include
"llvm/ADT/SmallString.h"
#include
"llvm/ADT/StringExtras.h"
#include
"llvm/ADT/StringExtras.h"
...
@@ -262,7 +261,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
...
@@ -262,7 +261,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
std
::
multimap
<
const
Section
*
,
std
::
multimap
<
const
Section
*
,
std
::
pair
<
MachineConstantPoolEntry
,
unsigned
>
>
CPMap
;
std
::
pair
<
MachineConstantPoolEntry
,
unsigned
>
>
CPMap
;
CPMap
CPs
;
CPMap
CPs
;
Dense
Set
<
const
Section
*>
Sections
;
SmallPtr
Set
<
const
Section
*
,
5
>
Sections
;
for
(
unsigned
i
=
0
,
e
=
CP
.
size
();
i
!=
e
;
++
i
)
{
for
(
unsigned
i
=
0
,
e
=
CP
.
size
();
i
!=
e
;
++
i
)
{
MachineConstantPoolEntry
CPE
=
CP
[
i
];
MachineConstantPoolEntry
CPE
=
CP
[
i
];
...
@@ -272,7 +271,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
...
@@ -272,7 +271,7 @@ void AsmPrinter::EmitConstantPool(MachineConstantPool *MCP) {
}
}
// Now print stuff into the calculated sections.
// Now print stuff into the calculated sections.
for
(
Dense
Set
<
const
Section
*>::
iterator
IS
=
Sections
.
begin
(),
for
(
SmallPtr
Set
<
const
Section
*
,
5
>::
iterator
IS
=
Sections
.
begin
(),
ES
=
Sections
.
end
();
IS
!=
ES
;
++
IS
)
{
ES
=
Sections
.
end
();
IS
!=
ES
;
++
IS
)
{
SwitchToSection
(
*
IS
);
SwitchToSection
(
*
IS
);
EmitAlignment
(
MCP
->
getConstantPoolAlignment
());
EmitAlignment
(
MCP
->
getConstantPoolAlignment
());
...
...
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