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

Unified Diff: include/llvm/MC/MCELFObjectWriter.h

Issue 183273009: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry Created 6 years, 10 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 | « include/llvm/IR/IntrinsicsNVVM.td ('k') | lib/Analysis/ScalarEvolution.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/MC/MCELFObjectWriter.h
diff --git a/include/llvm/MC/MCELFObjectWriter.h b/include/llvm/MC/MCELFObjectWriter.h
index 65dd1e8998cc657474f0e89a7c2dca12de4302e5..a59776d5cdaac31656ebcd159e08bb6bbadbe489 100644
--- a/include/llvm/MC/MCELFObjectWriter.h
+++ b/include/llvm/MC/MCELFObjectWriter.h
@@ -45,14 +45,7 @@ struct ELFRelocationEntry {
// Support lexicographic sorting.
bool operator<(const ELFRelocationEntry &RE) const {
- if (RE.r_offset != r_offset)
- return RE.r_offset < r_offset;
- if (Type != RE.Type)
- return Type < RE.Type;
- if (Index != RE.Index)
- return Index < RE.Index;
- llvm_unreachable("ELFRelocs might be unstable!");
- return 0;
+ return RE.r_offset < r_offset;
}
};
« no previous file with comments | « include/llvm/IR/IntrinsicsNVVM.td ('k') | lib/Analysis/ScalarEvolution.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698