Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: lib/Transforms/NaCl/FlattenGlobals.cpp

Issue 828553007: Wrok around MSVC bug 1085387. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Transforms/NaCl/FlattenGlobals.cpp
diff --git a/lib/Transforms/NaCl/FlattenGlobals.cpp b/lib/Transforms/NaCl/FlattenGlobals.cpp
index ea88693ed3b0d632e94ec13d2f6b1a4687f57a0c..ac5a4b95f762e71d4a4cdeb9e40440f5ded32870 100644
--- a/lib/Transforms/NaCl/FlattenGlobals.cpp
+++ b/lib/Transforms/NaCl/FlattenGlobals.cpp
@@ -82,7 +82,7 @@ namespace {
typedef std::vector<FlattenedGlobal*> FlattenedGlobalsVectorType;
// Returns the corresponding relocation, for the given user handle.
- static Constant *getRelocUse(RelocUserType *RelocUser) {
+ Constant *getRelocUseConstant(RelocUserType *RelocUser) {
return cast<Constant>(RelocUser->getReturnValue());
}
@@ -175,10 +175,9 @@ namespace {
public:
unsigned getRelOffset() const { return RelOffset; }
- Constant *getRelocUse() const { return ::getRelocUse(RelocUser); }
+ Constant *getRelocUse() const { return ::getRelocUseConstant(RelocUser); }
Reloc(FlattenGlobalsState &State, unsigned RelOffset, Constant *NewVal)
- : RelOffset(RelOffset),
- RelocUser(State.getRelocUserHandle(NewVal)) {}
+ : RelOffset(RelOffset), RelocUser(State.getRelocUserHandle(NewVal)) {}
explicit Reloc(const Reloc &R)
: RelOffset(R.RelOffset), RelocUser(R.RelocUser) {}
@@ -512,7 +511,7 @@ void FlattenGlobalsState::removeDeadInitializerConstants() {
// Do cleanup of old initializers.
for (RelocMapType::iterator I = RelocMap.begin(), E = RelocMap.end();
I != E; ++I) {
- getRelocUse(I->second)->removeDeadConstantUsers();
+ getRelocUseConstant(I->second)->removeDeadConstantUsers();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698