Fold a binary operator with constant operands when expanding code for a SCEV.
[llvm-complete.git] / lib / Debugger / SourceLanguage-CPlusPlus.cpp
blobb22163d768b3181fb9ad6b27e42c6c642781083c
1 //===-- SourceLanguage-CPlusPlus.cpp - C++ SourceLanguage impl ------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the SourceLanguage class for the C++ language.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Debugger/SourceLanguage.h"
15 using namespace llvm;
17 #if 0
18 namespace {
19 struct CPPSL : public SourceLanguage {
20 } TheCPlusPlusLanguageInstance;
22 #endif
24 const SourceLanguage &SourceLanguage::getCPlusPlusInstance() {
25 return get(0); // We don't have an implementation for C yet fall back on
26 // generic