Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
6312682b
Commit
6312682b
authored
13 years ago
by
Benjamin Kramer
Browse files
Options
Downloads
Patches
Plain Diff
Simplify code. No functionality change.
llvm-svn: 144186
parent
3757be39
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/MC/MCDwarf.cpp
+2
-8
2 additions, 8 deletions
llvm/lib/MC/MCDwarf.cpp
with
2 additions
and
8 deletions
llvm/lib/MC/MCDwarf.cpp
+
2
−
8
View file @
6312682b
...
@@ -371,10 +371,7 @@ void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
...
@@ -371,10 +371,7 @@ void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
// it with DW_LNS_advance_line.
// it with DW_LNS_advance_line.
if
(
Temp
>=
DWARF2_LINE_RANGE
)
{
if
(
Temp
>=
DWARF2_LINE_RANGE
)
{
OS
<<
char
(
dwarf
::
DW_LNS_advance_line
);
OS
<<
char
(
dwarf
::
DW_LNS_advance_line
);
SmallString
<
32
>
Tmp
;
MCObjectWriter
::
EncodeSLEB128
(
LineDelta
,
OS
);
raw_svector_ostream
OSE
(
Tmp
);
MCObjectWriter
::
EncodeSLEB128
(
LineDelta
,
OSE
);
OS
<<
OSE
.
str
();
LineDelta
=
0
;
LineDelta
=
0
;
Temp
=
0
-
DWARF2_LINE_BASE
;
Temp
=
0
-
DWARF2_LINE_BASE
;
...
@@ -410,10 +407,7 @@ void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
...
@@ -410,10 +407,7 @@ void MCDwarfLineAddr::Encode(int64_t LineDelta, uint64_t AddrDelta,
// Otherwise use DW_LNS_advance_pc.
// Otherwise use DW_LNS_advance_pc.
OS
<<
char
(
dwarf
::
DW_LNS_advance_pc
);
OS
<<
char
(
dwarf
::
DW_LNS_advance_pc
);
SmallString
<
32
>
Tmp
;
MCObjectWriter
::
EncodeULEB128
(
AddrDelta
,
OS
);
raw_svector_ostream
OSE
(
Tmp
);
MCObjectWriter
::
EncodeULEB128
(
AddrDelta
,
OSE
);
OS
<<
OSE
.
str
();
if
(
NeedCopy
)
if
(
NeedCopy
)
OS
<<
char
(
dwarf
::
DW_LNS_copy
);
OS
<<
char
(
dwarf
::
DW_LNS_copy
);
...
...
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