Remove every uses of getGlobalContext() in LLVM (but the C API)
Audit RequiredrL266379

Description

Remove every uses of getGlobalContext() in LLVM (but the C API)

At the same time, fixes InstructionsTest::CastInst unittest: yes
you can leave the IR in an invalid state and exit when you don't
destroy the context (like the global one), no longer now.

This is the first part of http://reviews.llvm.org/D19094

From: Mehdi Amini <mehdi.amini@apple.com>

Details

Auditors
Bigcheese
Committed
mehdi_aminiApr 14 2016, 2:59 PM
Parents
rL266378: AMDGPU: Run SIFoldOperands after PeepholeOptimizer
Branches
Unknown
Tags
Unknown