Fold a binary operator with constant operands when expanding code for a SCEV.
[llvm-complete.git] / lib / Debugger / SourceLanguage-CFamily.cpp
blob468fe0c61f022e48cd056232c81ecf2d1b5d529b
1 //===-- SourceLanguage-CFamily.cpp - C family 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 family of languages
11 // (K&R C, C89, C99, etc).
13 //===----------------------------------------------------------------------===//
15 #include "llvm/Debugger/SourceLanguage.h"
16 using namespace llvm;
18 #if 0
19 namespace {
20 struct CSL : public SourceLanguage {
21 } TheCSourceLanguageInstance;
23 #endif
25 const SourceLanguage &SourceLanguage::getCFamilyInstance() {
26 return get(0); // We don't have an implementation for C yet fall back on
27 // generic