aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorTDYa127 <tdy@google.com>2012-03-19 00:39:40 -0700
committerTDYa127 <tdy@google.com>2012-03-19 00:39:40 -0700
commit014bc6e3ceac59ea7d1d435cfb88642157c5270c (patch)
tree84294bf34fd3b5bb7c5cf05bc7ad1bca99618755 /include/llvm
parent8b8825ac164c2e7cce8b6987cea78cd8b301360d (diff)
downloadexternal_llvm-014bc6e3ceac59ea7d1d435cfb88642157c5270c.zip
external_llvm-014bc6e3ceac59ea7d1d435cfb88642157c5270c.tar.gz
external_llvm-014bc6e3ceac59ea7d1d435cfb88642157c5270c.tar.bz2
Restore to use private and LLVM coding style
Change-Id: I5650b0de503f5b44e7dc38bcb204f65a9b8a4ddc
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCAssembler.h11
-rw-r--r--include/llvm/Support/CommandLine.h6
2 files changed, 6 insertions, 11 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h
index 2df94e7..915645f 100644
--- a/include/llvm/MC/MCAssembler.h
+++ b/include/llvm/MC/MCAssembler.h
@@ -64,7 +64,7 @@ public:
FT_Target
};
-protected:
+private:
FragmentType Kind;
/// Parent - The data for the section this fragment is in.
@@ -461,7 +461,7 @@ public:
typedef FragmentListType::const_reverse_iterator const_reverse_iterator;
typedef FragmentListType::reverse_iterator reverse_iterator;
-protected:
+private:
FragmentListType Fragments;
const MCSection *Section;
@@ -489,7 +489,6 @@ public:
// Only for use as sentinel.
MCSectionData();
MCSectionData(const MCSection &Section, MCAssembler *A = 0);
- virtual ~MCSectionData() {}
const MCSection &getSection() const { return *Section; }
@@ -688,7 +687,7 @@ private:
MCCodeEmitter &Emitter;
- MCObjectWriter *m_pWriter;
+ MCObjectWriter *Writer;
raw_ostream &OS;
@@ -816,9 +815,9 @@ public:
MCCodeEmitter &getEmitter() const { return Emitter; }
- MCObjectWriter &getWriter() const { return *m_pWriter; }
+ MCObjectWriter &getWriter() const { return *Writer; }
- void setWriter(MCObjectWriter &pObjectWriter);
+ void setWriter(MCObjectWriter &ObjectWriter);
/// Finish - Do final processing and write the object to the output stream.
/// \arg Writer is used for custom object writer (as the MCJIT does),
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 04ed592..c212d2d 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -337,11 +337,7 @@ struct OptionValueBase : public GenericOptionValue {
bool hasValue() const { return false; }
- const DataType &getValue() const {
- assert(false && "no default value");
- DataType *p = 0;
- return *p;
- }
+ const DataType &getValue() const { llvm_unreachable("no default value"); }
// Some options may take their value from a different data type.
template<class DT>