mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 00:35:27 +00:00
Twinify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef56d1d35d
commit
3f4c979e1b
@ -16,7 +16,6 @@
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include <cstdlib>
|
||||
using namespace llvm;
|
||||
@ -188,9 +187,8 @@ void MCStreamer::EmitDataRegion() {
|
||||
if (!MAI.getSupportsDataRegions()) return;
|
||||
|
||||
// Generate a unique symbol name.
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(
|
||||
Twine(MAI.getDataBeginLabelName()) +
|
||||
utostr(UniqueDataBeginSuffix++));
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(MAI.getDataBeginLabelName() +
|
||||
Twine(UniqueDataBeginSuffix++));
|
||||
EmitLabel(NewSym);
|
||||
|
||||
RegionIndicator = Data;
|
||||
@ -204,9 +202,8 @@ void MCStreamer::EmitCodeRegion() {
|
||||
if (!MAI.getSupportsDataRegions()) return;
|
||||
|
||||
// Generate a unique symbol name.
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(
|
||||
Twine(MAI.getCodeBeginLabelName()) +
|
||||
utostr(UniqueCodeBeginSuffix++));
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(MAI.getCodeBeginLabelName() +
|
||||
Twine(UniqueCodeBeginSuffix++));
|
||||
EmitLabel(NewSym);
|
||||
|
||||
RegionIndicator = Code;
|
||||
@ -220,9 +217,9 @@ void MCStreamer::EmitJumpTable8Region() {
|
||||
if (!MAI.getSupportsDataRegions()) return;
|
||||
|
||||
// Generate a unique symbol name.
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(
|
||||
Twine(MAI.getJumpTable8BeginLabelName()) +
|
||||
utostr(UniqueDataBeginSuffix++));
|
||||
MCSymbol *NewSym =
|
||||
Context.GetOrCreateSymbol(MAI.getJumpTable8BeginLabelName() +
|
||||
Twine(UniqueDataBeginSuffix++));
|
||||
EmitLabel(NewSym);
|
||||
|
||||
RegionIndicator = JumpTable8;
|
||||
@ -236,9 +233,9 @@ void MCStreamer::EmitJumpTable16Region() {
|
||||
if (!MAI.getSupportsDataRegions()) return;
|
||||
|
||||
// Generate a unique symbol name.
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(
|
||||
Twine(MAI.getJumpTable16BeginLabelName()) +
|
||||
utostr(UniqueDataBeginSuffix++));
|
||||
MCSymbol *NewSym =
|
||||
Context.GetOrCreateSymbol(MAI.getJumpTable16BeginLabelName() +
|
||||
Twine(UniqueDataBeginSuffix++));
|
||||
EmitLabel(NewSym);
|
||||
|
||||
RegionIndicator = JumpTable16;
|
||||
@ -253,9 +250,9 @@ void MCStreamer::EmitJumpTable32Region() {
|
||||
if (!MAI.getSupportsDataRegions()) return;
|
||||
|
||||
// Generate a unique symbol name.
|
||||
MCSymbol *NewSym = Context.GetOrCreateSymbol(
|
||||
Twine(MAI.getJumpTable32BeginLabelName()) +
|
||||
utostr(UniqueDataBeginSuffix++));
|
||||
MCSymbol *NewSym =
|
||||
Context.GetOrCreateSymbol(MAI.getJumpTable32BeginLabelName() +
|
||||
Twine(UniqueDataBeginSuffix++));
|
||||
EmitLabel(NewSym);
|
||||
|
||||
RegionIndicator = JumpTable32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user