aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PTX
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-07 03:13:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-07 03:13:18 +0000
commit99b4237c1647156f0e1d3d7e03efdab23ed79778 (patch)
treed42c2ee376e2ae4534420e024205edc6b7cca8fe /lib/Target/PTX
parent977679d6034791fd48a344e5b990503ba50fc242 (diff)
downloadexternal_llvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.zip
external_llvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.tar.gz
external_llvm-99b4237c1647156f0e1d3d7e03efdab23ed79778.tar.bz2
Split Finish into Finish and FinishImpl to have a common place to do end of
file error checking. Use that to error on an unfinished cfi_startproc. The error is not nice, but is already better than a segmentation fault. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX')
-rw-r--r--lib/Target/PTX/PTXMCAsmStreamer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PTX/PTXMCAsmStreamer.cpp b/lib/Target/PTX/PTXMCAsmStreamer.cpp
index bc7aaa3..270ed2d 100644
--- a/lib/Target/PTX/PTXMCAsmStreamer.cpp
+++ b/lib/Target/PTX/PTXMCAsmStreamer.cpp
@@ -176,7 +176,7 @@ public:
/// indicated by the hasRawTextSupport() predicate.
virtual void EmitRawText(StringRef String);
- virtual void Finish();
+ virtual void FinishImpl();
/// @}
@@ -540,7 +540,7 @@ void PTXMCAsmStreamer::EmitRawText(StringRef String) {
EmitEOL();
}
-void PTXMCAsmStreamer::Finish() {}
+void PTXMCAsmStreamer::FinishImpl() {}
namespace llvm {
MCStreamer *createPTXAsmStreamer(MCContext &Context,